From 699cfe85984df9107b55d42b87d0929c2ae65904 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Wed, 25 May 2016 10:45:23 +0200
Subject: [PATCH] Move belongs to anonymous namespace

---
 src/manipulation-planner.cc | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/manipulation-planner.cc b/src/manipulation-planner.cc
index aed7a214..81243621 100644
--- a/src/manipulation-planner.cc
+++ b/src/manipulation-planner.cc
@@ -53,6 +53,15 @@ namespace hpp {
       HPP_DEFINE_TIMECOUNTER(buildPath);
       HPP_DEFINE_TIMECOUNTER(projectPath);
       HPP_DEFINE_TIMECOUNTER(validatePath);
+
+      bool belongs (const ConfigurationPtr_t& q, const core::Nodes_t& nodes)
+      {
+        for (core::Nodes_t::const_iterator itNode = nodes.begin ();
+            itNode != nodes.end (); ++itNode) {
+          if (*((*itNode)->configuration ()) == *q) return true;
+        }
+        return false;
+      }
     }
 
     const std::vector<ManipulationPlanner::Reason>
@@ -86,15 +95,6 @@ namespace hpp {
       return shPtr;
     }
 
-    bool belongs (const ConfigurationPtr_t& q, const core::Nodes_t& nodes)
-    {
-      for (core::Nodes_t::const_iterator itNode = nodes.begin ();
-          itNode != nodes.end (); ++itNode) {
-        if (*((*itNode)->configuration ()) == *q) return true;
-      }
-      return false;
-    }
-
     ManipulationPlanner::ErrorFreqs_t ManipulationPlanner::getEdgeStat
       (const graph::EdgePtr_t& edge) const
     {
@@ -172,10 +172,7 @@ namespace hpp {
                 delayedEdges.push_back (DelayedEdge_t (near, q_new, path));
               }
             }
-            
           }
-
-
         }
       }
 
-- 
GitLab