Remove component registration message

This commit is contained in:
momo5502 2016-08-14 16:18:44 +02:00
parent 3585ab62a7
commit 19d177ed29

View File

@ -60,7 +60,9 @@ namespace Components
std::reverse(Loader::Components.begin(), Loader::Components.end()); std::reverse(Loader::Components.begin(), Loader::Components.end());
for (auto component : Loader::Components) for (auto component : Loader::Components)
{ {
#ifdef DEBUG
Logger::Print("Unregistering component: %s\n", component->GetName()); Logger::Print("Unregistering component: %s\n", component->GetName());
#endif
delete component; delete component;
} }
@ -99,7 +101,9 @@ namespace Components
{ {
if (component) if (component)
{ {
#ifdef DEBUG
Logger::Print("Component registered: %s\n", component->GetName()); Logger::Print("Component registered: %s\n", component->GetName());
#endif
Loader::Components.push_back(component); Loader::Components.push_back(component);
} }
} }