From 83763cf9a9691ec321f1939f8631460d1ee49fd9 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Fri, 12 Jan 2018 19:13:19 +0100 Subject: [PATCH] Remove unused method `EmoteData::getImageForSize` --- src/util/emotemap.hpp | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/util/emotemap.hpp b/src/util/emotemap.hpp index 36afd1ed0..56c5823d2 100644 --- a/src/util/emotemap.hpp +++ b/src/util/emotemap.hpp @@ -18,35 +18,6 @@ struct EmoteData { { } - messages::Image *getImageForSize(unsigned emoteSize) const - { - messages::Image *ret = nullptr; - - switch (emoteSize) { - case 0: - ret = this->image1x; - break; - case 1: - ret = this->image2x; - break; - case 2: - ret = this->image3x; - break; - - default: - ret = this->image1x; - break; - } - - if (ret == nullptr) { - ret = this->image1x; - } - - assert(ret != nullptr); - - return ret; - } - // Emotes must have a 1x image to be valid bool isValid() const {