From: Martin Quinson Date: Tue, 22 Dec 2015 10:38:42 +0000 (+0100) Subject: pull up another (useless) method in the surf::Host hierarchy X-Git-Tag: v3_13~1411 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/62cbd47a6b39a36431539d60f0f0efe81d228e4b pull up another (useless) method in the surf::Host hierarchy --- diff --git a/src/surf/host_clm03.cpp b/src/surf/host_clm03.cpp index 1dc8e21791..e3610c2470 100644 --- a/src/surf/host_clm03.cpp +++ b/src/surf/host_clm03.cpp @@ -130,11 +130,6 @@ HostCLM03::~HostCLM03() { } -bool HostCLM03::isUsed(){ - THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */ - return -1; -} - void HostCLM03::updateState(tmgr_trace_event_t /*event_type*/, double /*value*/, double /*date*/){ THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */ } diff --git a/src/surf/host_clm03.hpp b/src/surf/host_clm03.hpp index 0a4d47e1b2..075589c5ae 100644 --- a/src/surf/host_clm03.hpp +++ b/src/surf/host_clm03.hpp @@ -55,8 +55,6 @@ public: ~HostCLM03(); void updateState(tmgr_trace_event_t event_type, double value, double date) override; - bool isUsed() override; - xbt_dynar_t getVms(); }; diff --git a/src/surf/host_interface.hpp b/src/surf/host_interface.hpp index 793e99d821..832ef5e8a7 100644 --- a/src/surf/host_interface.hpp +++ b/src/surf/host_interface.hpp @@ -253,6 +253,8 @@ public: */ virtual int fileMove(surf_file_t fd, const char* fullpath); + bool isUsed() override {DIE_IMPOSSIBLE;} // FIXME: Host should not be a Resource + public: xbt_dynar_t p_storage; RoutingEdge *p_netElm; diff --git a/src/surf/host_ptask_L07.hpp b/src/surf/host_ptask_L07.hpp index bc37f536cb..521b94f9e9 100644 --- a/src/surf/host_ptask_L07.hpp +++ b/src/surf/host_ptask_L07.hpp @@ -101,7 +101,6 @@ public: {} ~HostL07() {} - bool isUsed() override {DIE_IMPOSSIBLE;}; void updateState(tmgr_trace_event_t /*event_type*/, double /*value*/, double /*date*/) override {DIE_IMPOSSIBLE;}; };