Skip to content

Commit

Permalink
CDataStorageBucketList: delete redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Dec 15, 2015
1 parent 26c464d commit df9ca24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/xrAICore/Navigation/data_storage_bucket_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ struct CDataStorageBucketList
Vertex m_list_data[2];
Vertex *m_list_head;
Vertex *m_list_tail;
Distance m_switch_factor;
Distance m_min_bucket_value;
Distance m_max_bucket_value;
Vertex *m_buckets[BucketCount];
Expand All @@ -52,7 +51,6 @@ struct CDataStorageBucketList
virtual ~CDataStorage();
inline void init();
inline void add_best_closed();
inline void set_switch_factor(const Distance _switch_factor);
inline bool is_opened_empty();
inline u32 compute_bucket_id(Vertex &vertex) const;
inline void verify_buckets() const;
Expand Down
9 changes: 0 additions & 9 deletions src/xrAICore/Navigation/data_storage_bucket_list_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ inline CBucketList::CDataStorage(const u32 vertex_count) :
Inherited(vertex_count)
{
m_max_distance = Distance(-1);
m_switch_factor = Distance(1);
m_min_bucket_value = Distance(0);
m_max_bucket_value = Distance(1000);
ZeroMemory(m_buckets, BucketCount*sizeof(Vertex*));
Expand Down Expand Up @@ -57,14 +56,6 @@ inline void CBucketList::add_best_closed()
Inherited::add_closed(*m_buckets[m_min_bucket_id]);
}

TEMPLATE_SPECIALIZATION
inline void CBucketList::set_switch_factor(const Distance _switch_factor)
{
if (!sorted)
NODEFAULT;
m_switch_factor = _switch_factor;
}

TEMPLATE_SPECIALIZATION
inline bool CBucketList::is_opened_empty()
{
Expand Down

0 comments on commit df9ca24

Please sign in to comment.