refactor and cleanup [skip ci]

This commit is contained in:
overtake
2019-11-01 17:11:12 +04:00
parent 66191348f3
commit 8f66c10ac1
786 changed files with 983 additions and 69155 deletions

View File

@@ -1,18 +1,6 @@
#if os(macOS)
import PostboxMac
import TelegramApiMac
import MtProtoKitMac
#else
import Postbox
import UIKit
import TelegramApi
#if BUCK
import MtProtoKit
#else
import MtProtoKitDynamic
#endif
#endif
import Postbox
import TelegramApi
import MtProtoKit
import SyncCore
public func smallestImageRepresentation(_ representations: [TelegramMediaImageRepresentation]) -> TelegramMediaImageRepresentation? {
@@ -53,7 +41,7 @@ public func largestImageRepresentation(_ representations: [TelegramMediaImageRep
}
}
public func imageRepresentationLargerThan(_ representations: [TelegramMediaImageRepresentation], size: CGSize) -> TelegramMediaImageRepresentation? {
public func imageRepresentationLargerThan(_ representations: [TelegramMediaImageRepresentation], size: PixelDimensions) -> TelegramMediaImageRepresentation? {
if representations.count == 0 {
return nil
} else {