File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ struct CDataStorageBucketList
41
41
Vertex m_list_data[2 ];
42
42
Vertex *m_list_head;
43
43
Vertex *m_list_tail;
44
- Distance m_switch_factor;
45
44
Distance m_min_bucket_value;
46
45
Distance m_max_bucket_value;
47
46
Vertex *m_buckets[BucketCount];
@@ -52,7 +51,6 @@ struct CDataStorageBucketList
52
51
virtual ~CDataStorage ();
53
52
inline void init ();
54
53
inline void add_best_closed ();
55
- inline void set_switch_factor (const Distance _switch_factor);
56
54
inline bool is_opened_empty ();
57
55
inline u32 compute_bucket_id (Vertex &vertex) const ;
58
56
inline void verify_buckets () const ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ inline CBucketList::CDataStorage(const u32 vertex_count) :
25
25
Inherited(vertex_count)
26
26
{
27
27
m_max_distance = Distance (-1 );
28
- m_switch_factor = Distance (1 );
29
28
m_min_bucket_value = Distance (0 );
30
29
m_max_bucket_value = Distance (1000 );
31
30
ZeroMemory (m_buckets, BucketCount*sizeof (Vertex*));
@@ -57,14 +56,6 @@ inline void CBucketList::add_best_closed()
57
56
Inherited::add_closed (*m_buckets[m_min_bucket_id]);
58
57
}
59
58
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
-
68
59
TEMPLATE_SPECIALIZATION
69
60
inline bool CBucketList::is_opened_empty ()
70
61
{
You can’t perform that action at this time.
0 commit comments