From ae3c6508d04a703be4815ca94c1e3f888f14246c Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Thu, 20 Jul 2017 09:46:16 +0200 Subject: [PATCH] remove useless function --- src/surf/network_cm02.cpp | 3 --- src/surf/surf_interface.cpp | 2 -- src/surf/surf_interface.hpp | 1 - 3 files changed, 6 deletions(-) diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index 4a771e92ad..5a4eb90592 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -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(); } } } diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index cc313a1364..20e1855f5a 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -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); diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index a51ad073e3..3ee42ebf17 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -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; -- 2.20.1