X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2212826ed1d2df61b17e5984660e19288247063f..5e22c862d29ac2455672f2bc7f50bbcc9ade21c2:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 6a709c7ad6..6d71df79d1 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -17,7 +17,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_storage); *************/ extern std::map storage_types; -static void check_disk_attachment() +void check_disk_attachment() { for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages()) { simgrid::kernel::routing::NetPoint* host_elm = sg_netpoint_by_name_or_null(s->getImpl()->getHost().c_str()); @@ -29,12 +29,6 @@ static void check_disk_attachment() } } -void storage_register_callbacks() -{ - simgrid::s4u::onPlatformCreated.connect(check_disk_attachment); - instr_routing_define_callbacks(); -} - /********* * Model * *********/