From: Martin Quinson Date: Fri, 26 Aug 2016 20:16:15 +0000 (+0200) Subject: classes can actually be created on demand X-Git-Tag: v3_14~480 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6c619fe932602290423c6a789c2aa034ae9f1cad?ds=sidebyside classes can actually be created on demand I was remembering of some sort of problems with MC. --- diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 4058887d5a..010d3198b7 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -115,12 +115,6 @@ Action *HostModel::executeParallelTask(int host_nb, /************ * Resource * ************/ - - -void HostImpl::classInit() -{ -} - HostImpl::HostImpl(simgrid::surf::HostModel *model, const char *name, xbt_dynar_t storage, Cpu *cpu) : Resource(model, name) , PropertyHolder(nullptr) diff --git a/src/surf/HostImpl.hpp b/src/surf/HostImpl.hpp index 62f6178f79..b02cb265e2 100644 --- a/src/surf/HostImpl.hpp +++ b/src/surf/HostImpl.hpp @@ -75,7 +75,6 @@ public: static simgrid::xbt::Extension EXTENSION_ID; public: - static void classInit(); // must be called before the first use of that class /** * @brief Host constructor * diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 56845e3ee3..62f899e02c 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -301,7 +301,6 @@ void surf_init(int *argc, char **argv) }); XBT_DEBUG("Add SURF levels"); - simgrid::surf::HostImpl::classInit(); SURF_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,surf_storage_free); xbt_init(argc, argv);