Remove unused method EmoteData::getImageForSize

This commit is contained in:
Rasmus Karlsson 2018-01-12 19:13:19 +01:00
parent 3c8c793e47
commit 83763cf9a9

View file

@ -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
{