Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill dead code: Action::recycle never got implemented
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 10:37:23 +0000 (12:37 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 10:37:23 +0000 (12:37 +0200)
src/surf/cpu_ti.cpp
src/surf/cpu_ti.hpp
src/surf/network_cm02.cpp
src/surf/network_cm02.hpp
src/surf/network_constant.cpp
src/surf/network_constant.hpp
src/surf/storage_n11.hpp
src/surf/surf_interface.hpp

index 160fa74..9841ec9 100644 (file)
@@ -903,11 +903,6 @@ void CpuTiAction::cancel()
   return;
 }
 
   return;
 }
 
-void CpuTiAction::recycle()
-{
-  DIE_IMPOSSIBLE;
-}
-
 void CpuTiAction::suspend()
 {
   XBT_IN("(%p)", this);
 void CpuTiAction::suspend()
 {
   XBT_IN("(%p)", this);
index 022e2ce..de57ece 100644 (file)
@@ -161,7 +161,6 @@ public:
   void setState(e_surf_action_state_t state);
   int unref();
   void cancel();
   void setState(e_surf_action_state_t state);
   int unref();
   void cancel();
-  void recycle();
   void updateIndexHeap(int i);
   void suspend();
   void resume();
   void updateIndexHeap(int i);
   void suspend();
   void resume();
index fd81be3..e9c08ba 100644 (file)
@@ -689,8 +689,4 @@ void NetworkCm02Action::updateRemainingLazy(double now)
   m_lastUpdate = now;
   m_lastValue = lmm_variable_getvalue(getVariable());
 }
   m_lastUpdate = now;
   m_lastValue = lmm_variable_getvalue(getVariable());
 }
-void NetworkCm02Action::recycle()
-{
-  return;
-}
 
 
index f9d418a..3dd58ea 100644 (file)
@@ -92,7 +92,6 @@ public:
   NetworkCm02Action(Model *model, double cost, bool failed)
  : NetworkAction(model, cost, failed) {};
   void updateRemainingLazy(double now);
   NetworkCm02Action(Model *model, double cost, bool failed)
  : NetworkAction(model, cost, failed) {};
   void updateRemainingLazy(double now);
-  void recycle();
 };
 
 #endif /* SURF_NETWORK_CM02_HPP_ */
 };
 
 #endif /* SURF_NETWORK_CM02_HPP_ */
index 6574473..47f923f 100644 (file)
@@ -157,11 +157,6 @@ void NetworkConstantAction::resume()
        m_suspended = false;
 }
 
        m_suspended = false;
 }
 
-void NetworkConstantAction::recycle()
-{
-  return;
-}
-
 bool NetworkConstantAction::isSuspended()
 {
   return m_suspended;
 bool NetworkConstantAction::isSuspended()
 {
   return m_suspended;
index ecff72a..0705b97 100644 (file)
@@ -62,7 +62,6 @@ public:
        p_variable = NULL;
   };
   int unref();
        p_variable = NULL;
   };
   int unref();
-  void recycle();
   void cancel();
   void setCategory(const char *category);
   void suspend();
   void cancel();
   void setCategory(const char *category);
   void suspend();
index a65620a..d9d3941 100644 (file)
@@ -63,7 +63,6 @@ public:
   void suspend();
   int unref();
   void cancel();
   void suspend();
   int unref();
   void cancel();
-  //FIXME:??void recycle();
   void resume();
   bool isSuspended();
   void setMaxDuration(double duration);
   void resume();
   bool isSuspended();
   void setMaxDuration(double duration);
index f243cac..2197bb0 100644 (file)
@@ -467,9 +467,6 @@ public:
   /** @brief Cancel the current Action if running */
   virtual void cancel();
 
   /** @brief Cancel the current Action if running */
   virtual void cancel();
 
-  /** @brief Recycle an Action */
-  virtual void recycle(){};
-
   /** @brief Suspend the current Action */
   virtual void suspend();
 
   /** @brief Suspend the current Action */
   virtual void suspend();