mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Remove no longer used code
This commit is contained in:
@ -53,9 +53,6 @@ CursorHandler::CursorHandler()
|
||||
GH.renderHandler().loadAnimation(AnimationPath::builtin("CRSPELL"))
|
||||
};
|
||||
|
||||
for (auto & cursor : cursors)
|
||||
cursor->preload();
|
||||
|
||||
set(Cursor::Map::POINTER);
|
||||
showType = dynamic_cast<CursorSoftware *>(cursor.get()) ? Cursor::ShowType::SOFTWARE : Cursor::ShowType::HARDWARE;
|
||||
}
|
||||
@ -105,7 +102,6 @@ void CursorHandler::dragAndDropCursor(std::shared_ptr<IImage> image)
|
||||
void CursorHandler::dragAndDropCursor (const AnimationPath & path, size_t index)
|
||||
{
|
||||
auto anim = GH.renderHandler().loadAnimation(path);
|
||||
anim->load(index);
|
||||
dragAndDropCursor(anim->getImage(index));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user