bug 506 -- remove name version of SetPositionAllocator
authorCraig Dowell <craigdo@ee.washington.edu>
Sat, 21 Feb 2009 14:46:11 -0800
changeset 4201 511a086fde07
parent 4200 b41ff644fd6e
child 4203 53a87941480f
bug 506 -- remove name version of SetPositionAllocator
src/helper/mobility-helper.cc
src/helper/mobility-helper.h
--- a/src/helper/mobility-helper.cc	Sat Feb 21 22:09:08 2009 +0000
+++ b/src/helper/mobility-helper.cc	Sat Feb 21 14:46:11 2009 -0800
@@ -46,12 +46,7 @@
 {
   m_position = allocator;
 }
-void 
-MobilityHelper::SetPositionAllocator (std::string allocatorName)
-{
-  Ptr<PositionAllocator> allocator = Names::Find<PositionAllocator> (allocatorName);
-  m_position = allocator;
-}
+
 void 
 MobilityHelper::SetPositionAllocator (std::string type,
                                       std::string n1, const AttributeValue &v1,
--- a/src/helper/mobility-helper.h	Sat Feb 21 22:09:08 2009 +0000
+++ b/src/helper/mobility-helper.h	Sat Feb 21 14:46:11 2009 -0800
@@ -50,13 +50,6 @@
    * \param allocator allocate initial node positions
    */
   void SetPositionAllocator (Ptr<PositionAllocator> allocator);
-  /**
-   * Set the position allocator which will be used to allocate the initial 
-   * position of every node initialized during MobilityModel::Install.
-   *
-   * \param allocator allocate initial node positions
-   */
-  void SetPositionAllocator (std::string allocatorName);
 
   /**
    * \param type the type of mobility model to use.