Skip to content

Commit df9ca24

Browse files
author
nitrocaster
committed
CDataStorageBucketList: delete redundant code.
1 parent 26c464d commit df9ca24

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/xrAICore/Navigation/data_storage_bucket_list.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ struct CDataStorageBucketList
4141
Vertex m_list_data[2];
4242
Vertex *m_list_head;
4343
Vertex *m_list_tail;
44-
Distance m_switch_factor;
4544
Distance m_min_bucket_value;
4645
Distance m_max_bucket_value;
4746
Vertex *m_buckets[BucketCount];
@@ -52,7 +51,6 @@ struct CDataStorageBucketList
5251
virtual ~CDataStorage();
5352
inline void init();
5453
inline void add_best_closed();
55-
inline void set_switch_factor(const Distance _switch_factor);
5654
inline bool is_opened_empty();
5755
inline u32 compute_bucket_id(Vertex &vertex) const;
5856
inline void verify_buckets() const;

src/xrAICore/Navigation/data_storage_bucket_list_inline.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ inline CBucketList::CDataStorage(const u32 vertex_count) :
2525
Inherited(vertex_count)
2626
{
2727
m_max_distance = Distance(-1);
28-
m_switch_factor = Distance(1);
2928
m_min_bucket_value = Distance(0);
3029
m_max_bucket_value = Distance(1000);
3130
ZeroMemory(m_buckets, BucketCount*sizeof(Vertex*));
@@ -57,14 +56,6 @@ inline void CBucketList::add_best_closed()
5756
Inherited::add_closed(*m_buckets[m_min_bucket_id]);
5857
}
5958

60-
TEMPLATE_SPECIALIZATION
61-
inline void CBucketList::set_switch_factor(const Distance _switch_factor)
62-
{
63-
if (!sorted)
64-
NODEFAULT;
65-
m_switch_factor = _switch_factor;
66-
}
67-
6859
TEMPLATE_SPECIALIZATION
6960
inline bool CBucketList::is_opened_empty()
7061
{

0 commit comments

Comments
 (0)