From 548c38f54d5db6de3556a4a88f237db9addc4a72 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 1 Jul 2023 13:29:46 +0200 Subject: [PATCH] Remove unused code --- components/detournavigator/findsmoothpath.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/detournavigator/findsmoothpath.hpp b/components/detournavigator/findsmoothpath.hpp index 8cf968268d..097e81dc8a 100644 --- a/components/detournavigator/findsmoothpath.hpp +++ b/components/detournavigator/findsmoothpath.hpp @@ -18,8 +18,6 @@ namespace DetourNavigator { - struct Settings; - inline bool inRange(const osg::Vec3f& v1, const osg::Vec3f& v2, const float r) { return (osg::Vec2f(v1.x(), v1.z()) - osg::Vec2f(v2.x(), v2.z())).length() < r; @@ -87,12 +85,6 @@ namespace DetourNavigator std::reference_wrapper mSettings; }; - inline bool initNavMeshQuery(dtNavMeshQuery& value, const dtNavMesh& navMesh, const int maxNodes) - { - const auto status = value.init(&navMesh, maxNodes); - return dtStatusSucceed(status); - } - dtPolyRef findNearestPoly(const dtNavMeshQuery& query, const dtQueryFilter& filter, const osg::Vec3f& center, const osg::Vec3f& halfExtents);