Finally remove fxm from IdManager

This commit is contained in:
Nekotekina
2019-09-26 21:55:03 +03:00
parent c065a21b74
commit 465b16e786
4 changed files with 1 additions and 146 deletions
-17
View File
@@ -6,7 +6,6 @@ shared_mutex id_manager::g_mutex;
thread_local DECLARE(idm::g_id);
DECLARE(idm::g_map);
DECLARE(fxm::g_vec);
id_manager::id_map::pointer idm::allocate_id(const id_manager::id_key& info, u32 base, u32 step, u32 count)
{
@@ -68,19 +67,3 @@ void idm::clear()
map.clear();
}
}
void fxm::init()
{
// Allocate
g_vec.resize(id_manager::typeinfo::get_count());
fxm::clear();
}
void fxm::clear()
{
// Call recorded finalization functions for all IDs
for (auto& val : g_vec)
{
val.reset();
}
}