summaryrefslogtreecommitdiff
path: root/src/resources/loaders/rescaledloader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-21 23:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-21 23:27:33 +0300
commitd181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (patch)
tree643c68086ee1258dbea0943f2928af626f3b9c81 /src/resources/loaders/rescaledloader.cpp
parent5d6e4e9a5875d79173e9d2c867567dc26354240e (diff)
downloadmanaverse-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.gz
manaverse-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.bz2
manaverse-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.xz
manaverse-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.zip
Remove useless variables.
Diffstat (limited to 'src/resources/loaders/rescaledloader.cpp')
-rw-r--r--src/resources/loaders/rescaledloader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/loaders/rescaledloader.cpp b/src/resources/loaders/rescaledloader.cpp
index cea73b382..e69814d27 100644
--- a/src/resources/loaders/rescaledloader.cpp
+++ b/src/resources/loaders/rescaledloader.cpp
@@ -71,7 +71,6 @@ Image *Loader::getRescaled(const Image *const image,
const std::string idPath = image->mIdPath + strprintf(
"_rescaled%dx%d", width, height);
const RescaledLoader rl = { image, width, height };
- Image *const img = static_cast<Image *>(
+ return static_cast<Image *>(
ResourceManager::get(idPath, RescaledLoader::load, &rl));
- return img;
}