Skip to content

Commit 1bd9621

Browse files
author
nitrocaster
committed
Remove redundant _vertex_index template parameter.
1 parent d7b940d commit 1bd9621

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

src/xrAICore/Navigation/data_storage_constructor.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ template <
1818
>
1919
struct CManagerBuilderAllocatorConstructor {
2020
template <
21-
template <typename T> class _vertex = CEmptyClassTemplate,
22-
template <typename T1, typename T2> class _index_vertex = CEmptyClassTemplate2
21+
template <typename T> class _vertex = CEmptyClassTemplate
2322
>
2423
class CDataStorage :
25-
public _manager::template CDataStorage<_builder, _allocator, _vertex, _index_vertex>
24+
public _manager::template CDataStorage<_builder, _allocator, _vertex>
2625
{
2726
public:
28-
typedef typename _manager::template CDataStorage<_builder, _allocator, _vertex, _index_vertex> inherited;
27+
typedef typename _manager::template CDataStorage<_builder, _allocator, _vertex> inherited;
2928
typedef typename inherited::CDataStorageAllocator inherited_allocator;
3029
typedef typename inherited::CGraphVertex CGraphVertex;
3130
typedef typename CGraphVertex::_index_type _index_type;

src/xrAICore/Navigation/vertex_manager_fixed.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ struct CVertexManagerFixed {
3838
template <
3939
typename _builder,
4040
typename _allocator,
41-
template <typename _T> class _vertex = CEmptyClassTemplate,
42-
template <typename _T1, typename _T2> class _index_vertex = CEmptyClassTemplate2
41+
template <typename _T> class _vertex = CEmptyClassTemplate
4342
>
4443
class CDataStorage :
4544
public _builder::template CDataStorage<VertexManager<_vertex>::_vertex>,
@@ -51,11 +50,11 @@ struct CVertexManagerFixed {
5150
typename _builder::template CDataStorage<VertexManager<_vertex>::_vertex>::CGraphVertex> CDataStorageAllocator;
5251
typedef typename CDataStorageBase::CGraphVertex CGraphVertex;
5352
typedef typename CGraphVertex::_index_type _index_type;
54-
//using inherited = CDataStorageAllocator;
5553

5654
#pragma pack(push,1)
5755
template <typename _path_id_type>
58-
struct SGraphIndexVertex : public _index_vertex<CGraphVertex,SGraphIndexVertex<_path_id_type> > {
56+
struct SGraphIndexVertex
57+
{
5958
_path_id_type m_path_id;
6059
CGraphVertex *m_vertex;
6160
};

src/xrAICore/Navigation/vertex_manager_fixed_inline.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
template <\
1818
typename _builder,\
1919
typename _allocator,\
20-
template <typename _T> class _vertex,\
21-
template <typename _T1, typename _T2> class _index_vertex\
20+
template <typename _T> class _vertex\
2221
>
2322

24-
#define CFixedVertexManager CVertexManagerFixed<_path_id_type,_index_type,mask>::CDataStorage<_builder,_allocator,_vertex,_index_vertex>
23+
#define CFixedVertexManager CVertexManagerFixed<_path_id_type,_index_type,mask>::CDataStorage<_builder,_allocator,_vertex>
2524

2625
TEMPLATE_SPECIALIZATION
2726
IC CFixedVertexManager::CDataStorage (const u32 vertex_count) :

src/xrAICore/Navigation/vertex_manager_hash_fixed.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ struct CVertexManagerHashFixed {
4949
template <
5050
typename _builder,
5151
typename _allocator,
52-
template <typename _T> class _vertex = CEmptyClassTemplate,
53-
template <typename _T1, typename _T2> class _index_vertex = CEmptyClassTemplate2
52+
template <typename _T> class _vertex = CEmptyClassTemplate
5453
>
5554
class CDataStorage :
5655
public _builder::template CDataStorage<VertexManager<_vertex>::_vertex>,
@@ -65,7 +64,8 @@ struct CVertexManagerHashFixed {
6564

6665
#pragma pack(push,1)
6766
template <typename _path_id_type>
68-
struct SGraphIndexVertex : public _index_vertex<CGraphVertex,SGraphIndexVertex<_path_id_type> > {
67+
struct SGraphIndexVertex
68+
{
6969
CGraphVertex *m_vertex;
7070
SGraphIndexVertex *m_next;
7171
SGraphIndexVertex *m_prev;

src/xrAICore/Navigation/vertex_manager_hash_fixed_inline.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
template <\
1919
typename _builder,\
2020
typename _allocator,\
21-
template <typename _T> class _vertex,\
22-
template <typename _T1, typename _T2> class _index_vertex\
21+
template <typename _T> class _vertex\
2322
>
2423

25-
#define CHashFixedVertexManager CVertexManagerHashFixed<_path_id_type,_index_type,hash_size,fix_size>::CDataStorage<_builder,_allocator,_vertex,_index_vertex>
24+
#define CHashFixedVertexManager CVertexManagerHashFixed<_path_id_type,_index_type,hash_size,fix_size>::CDataStorage<_builder,_allocator,_vertex>
2625

2726
TEMPLATE_SPECIALIZATION
2827
IC CHashFixedVertexManager::CDataStorage (const u32 vertex_count) :

0 commit comments

Comments
 (0)