From 7ed195f3bfe7512511abe502b4eeb447281ac3c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Dec 2018 19:53:50 +0300 Subject: minor code cleaning --- protocols/Discord/src/avatars.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'protocols/Discord/src') 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; -- cgit v1.2.3