Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove useless function
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 20 Jul 2017 07:46:16 +0000 (09:46 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 20 Jul 2017 07:46:16 +0000 (09:46 +0200)
src/surf/network_cm02.cpp
src/surf/surf_interface.cpp
src/surf/surf_interface.hpp

index 4a771e9..5a4eb90 100644 (file)
@@ -208,8 +208,6 @@ void NetworkCm02Model::updateActionsStateLazy(double now, double /*delta*/)
       action->finish();
       action->setState(Action::State::done);
       action->heapRemove(actionHeap_);
-
-      action->gapRemove();
     }
   }
 }
@@ -264,7 +262,6 @@ void NetworkCm02Model::updateActionsStateFull(double now, double delta)
         ((action->getMaxDuration() > NO_MAX_DURATION) && (action->getMaxDuration() <= 0))) {
       action->finish();
       action->setState(Action::State::done);
-      action->gapRemove();
     }
   }
 }
index cc313a1..20e1855 100644 (file)
@@ -738,8 +738,6 @@ void Action::setMaxDuration(double duration)
     heapRemove(getModel()->getActionHeap());
 }
 
-void Action::gapRemove() {}
-
 void Action::setSharingWeight(double weight)
 {
   XBT_IN("(%p,%g)", this, weight);
index a51ad07..3ee42eb 100644 (file)
@@ -239,7 +239,6 @@ public:
   void refreshLastUpdate() {lastUpdate_ = surf_get_clock();}
   enum heap_action_type getHat() {return hat_;}
   bool is_linked() {return action_lmm_hook.is_linked();}
-  void gapRemove();
 
 protected:
   lmm_variable_t variable_ = nullptr;