From c034db4abdf6b08ffcc81847efd0c520030416f8 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 7 Oct 2014 19:31:27 +0400 Subject: [PATCH] Conversation activities --- MTProtoKit/MTOutputStream.m | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/MTProtoKit/MTOutputStream.m b/MTProtoKit/MTOutputStream.m index 70bf5df28c..ca0c8d22ee 100644 --- a/MTProtoKit/MTOutputStream.m +++ b/MTProtoKit/MTOutputStream.m @@ -14,18 +14,7 @@ static inline int roundUp(int numToRound, int multiple) { - if (multiple == 0) - { - return numToRound; - } - - int remainder = numToRound % multiple; - if (remainder == 0) - { - return numToRound; - } - - return numToRound + multiple - remainder; + return multiple == 0 ? numToRound : ((numToRound % multiple) == 0 ? numToRound : (numToRound + multiple - (numToRound % multiple))); } @interface MTOutputStream ()