summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-24 19:53:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-24 19:53:50 +0300
commit7ed195f3bfe7512511abe502b4eeb447281ac3c5 (patch)
treefae229cbd6dbbde118141d62ad3b5c5d3a190b48 /protocols/Discord/src
parent7f5b936071e3a02fee7f7156157f2d0f776bb395 (diff)
minor code cleaning
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/avatars.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp
index ead76f36da..7b6e763b3d 100644
--- a/protocols/Discord/src/avatars.cpp
+++ b/protocols/Discord/src/avatars.cpp
@@ -41,10 +41,6 @@ INT_PTR CDiscordProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam)
((POINT*)lParam)->x = ((POINT*)lParam)->y = 128;
break;
- case AF_PROPORTION:
- res = PIP_NONE;
- break;
-
case AF_FORMATSUPPORTED:
res = lParam == PA_FORMAT_PNG || lParam == PA_FORMAT_GIF || lParam == PA_FORMAT_JPEG;
break;
@@ -53,8 +49,7 @@ INT_PTR CDiscordProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam)
case AF_DONTNEEDDELAYS:
case AF_FETCHIFPROTONOTVISIBLE:
case AF_FETCHIFCONTACTOFFLINE:
- res = 1;
- break;
+ return 1;
}
return res;