X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/63ebf4be4ca6a243a64c7ded8df9b96a9d28d3ff..f65227b48799d7a99c119e65b0ace3e5be244285:/src/s4u/s4u_Storage.cpp diff --git a/src/s4u/s4u_Storage.cpp b/src/s4u/s4u_Storage.cpp index cc6c203c69..8a870dfadc 100644 --- a/src/s4u/s4u_Storage.cpp +++ b/src/s4u/s4u_Storage.cpp @@ -19,9 +19,7 @@ template class Extendable; namespace s4u { -void XBT_ATTRIB_DEPRECATED_v322( - "simgrid::s4u::getStorageList() is deprecated in favor of Engine::getAllStorages(). Please switch before v3.22") - getStorageList(std::map* whereTo) +void getStorageList(std::map* whereTo) { for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages()) whereTo->insert({s->get_name(), s}); @@ -29,7 +27,7 @@ void XBT_ATTRIB_DEPRECATED_v322( Storage::Storage(std::string name, surf::StorageImpl* pimpl) : pimpl_(pimpl), name_(name) { - simgrid::s4u::Engine::getInstance()->add_storage(name, this); + simgrid::s4u::Engine::getInstance()->storage_register(name, this); } Storage* Storage::byName(std::string name)