Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put deprecated annotation at declaration.
[simgrid.git] / src / s4u / s4u_Storage.cpp
index cc6c203..8a870df 100644 (file)
@@ -19,9 +19,7 @@ template class Extendable<simgrid::s4u::Storage>;
 
 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<std::string, Storage*>* whereTo)
+void getStorageList(std::map<std::string, Storage*>* 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)