diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-01-22 15:09:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 15:09:26 +0000 |
commit | 4c76239818f5159314f30883f98b977d30aaa26c (patch) | |
tree | 42d2fc37b1e5ed2ad1c450a5547fce2ddec75b65 /src/pathfinder.cpp | |
parent | 67aa75d444d0e5cfff2728dbbcffd6f95b2fe88b (diff) | |
download | minetest-4c76239818f5159314f30883f98b977d30aaa26c.tar.gz minetest-4c76239818f5159314f30883f98b977d30aaa26c.tar.bz2 minetest-4c76239818f5159314f30883f98b977d30aaa26c.zip |
Remove dead code (#10845)
Diffstat (limited to 'src/pathfinder.cpp')
-rw-r--r-- | src/pathfinder.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 3f0b98c10..1cb84997a 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -157,9 +157,8 @@ public: ArrayGridNodeContainer(Pathfinder *pathf, v3s16 dimensions); virtual PathGridnode &access(v3s16 p); -private: - v3s16 m_dimensions; +private: int m_x_stride; int m_y_stride; std::vector<PathGridnode> m_nodes_array; @@ -306,8 +305,6 @@ private: int m_max_index_y = 0; /**< max index of search area in y direction */ int m_max_index_z = 0; /**< max index of search area in z direction */ - - int m_searchdistance = 0; /**< max distance to search in each direction */ int m_maxdrop = 0; /**< maximum number of blocks a path may drop */ int m_maxjump = 0; /**< maximum number of blocks a path may jump */ int m_min_target_distance = 0; /**< current smalest path to target */ @@ -619,7 +616,6 @@ std::vector<v3s16> Pathfinder::getPath(v3s16 source, std::vector<v3s16> retval; //initialization - m_searchdistance = searchdistance; m_maxjump = max_jump; m_maxdrop = max_drop; m_start = source; |