1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Removed unused code

This commit is contained in:
Ivan Savenko 2023-08-06 13:29:57 +03:00
parent 0dca5c45bd
commit a4ff408c9d

View File

@ -126,24 +126,11 @@ void Graphics::initializeBattleGraphics()
} }
Graphics::Graphics() Graphics::Graphics()
{ {
#if 0
std::vector<Task> tasks; //preparing list of graphics to load
tasks += std::bind(&Graphics::loadFonts,this);
tasks += std::bind(&Graphics::loadPaletteAndColors,this);
tasks += std::bind(&Graphics::initializeBattleGraphics,this);
tasks += std::bind(&Graphics::loadErmuToPicture,this);
tasks += std::bind(&Graphics::initializeImageLists,this);
CThreadHelper th(&tasks,std::max((ui32)1,boost::thread::hardware_concurrency()));
th.run();
#else
loadFonts(); loadFonts();
loadPaletteAndColors(); loadPaletteAndColors();
initializeBattleGraphics(); initializeBattleGraphics();
loadErmuToPicture(); loadErmuToPicture();
initializeImageLists(); initializeImageLists();
#endif
//(!) do not load any CAnimation here //(!) do not load any CAnimation here
} }