From 490140e0659d3dc99f2b19227410bd279a12fdf6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Apr 2016 18:01:11 +0300 Subject: Remove useless function ResourceManager::load. --- src/resources/resourcemanager.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/resources/resourcemanager.cpp') diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index cc990f811..0f3f10f76 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -542,20 +542,16 @@ struct ResourceLoader final } }; -Resource *ResourceManager::load(const std::string &path, const loader fun) -{ - ResourceLoader rl = { this, path, fun }; - return get(path, ResourceLoader::load, &rl); -} - SDLMusic *ResourceManager::getMusic(const std::string &idPath) { - return static_cast(load(idPath, &SDLMusic::load)); + ResourceLoader rl = { this, idPath, &SDLMusic::load }; + return static_cast(get(idPath, ResourceLoader::load, &rl)); } SoundEffect *ResourceManager::getSoundEffect(const std::string &idPath) { - return static_cast(load(idPath, &SoundEffect::load)); + ResourceLoader rl = { this, idPath, &SoundEffect::load }; + return static_cast(get(idPath, ResourceLoader::load, &rl)); } struct DyedImageLoader final -- cgit v1.2.3-70-g09d2