mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove unused method EmoteData::getImageForSize
This commit is contained in:
parent
3c8c793e47
commit
83763cf9a9
1 changed files with 0 additions and 29 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue