[GRASS-SVN] r54800 - in grass-addons/grass7/raster/r.agent: libagent tests

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 27 15:33:10 PST 2013


Author: mic
Date: 2013-01-27 15:33:09 -0800 (Sun, 27 Jan 2013)
New Revision: 54800

Modified:
   grass-addons/grass7/raster/r.agent/libagent/world.py
   grass-addons/grass7/raster/r.agent/tests/test_aco.py
   grass-addons/grass7/raster/r.agent/tests/test_world.py
Log:
remove potentially unused

Modified: grass-addons/grass7/raster/r.agent/libagent/world.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/world.py	2013-01-27 23:14:24 UTC (rev 54799)
+++ grass-addons/grass7/raster/r.agent/libagent/world.py	2013-01-27 23:33:09 UTC (rev 54800)
@@ -69,13 +69,6 @@
         self.agents.append(agent)
         return agent
 
-    def getnextagent():
-        """
-        Cycle through to the next agent
-        @return agent next agent from the list
-        """
-        return next(self, agents)
-
     def move(self, agent, position):
         """
         Set agent to a new position

Modified: grass-addons/grass7/raster/r.agent/tests/test_aco.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_aco.py	2013-01-27 23:14:24 UTC (rev 54799)
+++ grass-addons/grass7/raster/r.agent/tests/test_aco.py	2013-01-27 23:33:09 UTC (rev 54800)
@@ -20,9 +20,6 @@
     def test_bear(self):
         pass
 
-    def test_getnextagent(self):
-        pass
-
     def test_move(self):
         pass
 

Modified: grass-addons/grass7/raster/r.agent/tests/test_world.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_world.py	2013-01-27 23:14:24 UTC (rev 54799)
+++ grass-addons/grass7/raster/r.agent/tests/test_world.py	2013-01-27 23:33:09 UTC (rev 54800)
@@ -28,9 +28,6 @@
         self.assertIsInstance(agent, self.world.agenttype)
         self.assertIs(agent, self.world.agents.pop())
 
-    def test_getnextagent(self):
-        pass
-
     def test_move(self):
         pass
 



More information about the grass-commit mailing list