cyberta 5 years ago
parent
commit
e1ae9c23d6

+ 3 - 7
DcCore/DcCore/DC/Wrapper.swift

@@ -310,7 +310,7 @@ public class DcContext {
         setConfig(key, vStr)
         setConfig(key, vStr)
     }
     }
 
 
-      public func getConfigInt(_ key: String) -> Int {
+    public func getConfigInt(_ key: String) -> Int {
         if let str = getConfig(key) {
         if let str = getConfig(key) {
             return Int(str) ?? 0
             return Int(str) ?? 0
         }
         }
@@ -596,7 +596,7 @@ public class DcChatlist {
 }
 }
 
 
 public class DcChat {
 public class DcChat {
-    public var chatPointer: OpaquePointer?
+    var chatPointer: OpaquePointer?
 
 
     // use DcContext.getChat() instead of calling the constructor directly
     // use DcContext.getChat() instead of calling the constructor directly
     public init(id: Int) {
     public init(id: Int) {
@@ -712,7 +712,7 @@ public class DcArray {
     ///TODO: add missing methods here
     ///TODO: add missing methods here
 }
 }
 
 
-public class DcMsg/*: MessageType*/ {
+public class DcMsg {
     private var messagePointer: OpaquePointer?
     private var messagePointer: OpaquePointer?
 
 
     /**
     /**
@@ -746,10 +746,6 @@ public class DcMsg/*: MessageType*/ {
         return messagePointer
         return messagePointer
     }
     }
 
 
-/*    public lazy var sender: SenderType = {
-        Sender(id: "\(fromContactId)", displayName: fromContact.displayName)
-    }()*/
-
     public lazy var sentDate: Date = {
     public lazy var sentDate: Date = {
         Date(timeIntervalSince1970: Double(timestamp))
         Date(timeIntervalSince1970: Double(timestamp))
     }()
     }()

+ 0 - 8
DcCore/DcCore/Extensions/UIColor+Extensions.swift

@@ -1,11 +1,3 @@
-//
-//  UIColor+Extension.swift
-//  DcCore
-//
-//  Created by Macci on 08.04.20.
-//  Copyright © 2020 merlinux GmbH. All rights reserved.
-//
-
 import UIKit
 import UIKit
 
 
 internal extension UIColor {
 internal extension UIColor {

+ 0 - 16
DcCore/DcCore/Extensions/UIImage+Extension.swift

@@ -1,16 +0,0 @@
-import UIKit
-
-internal extension UIImage {
-
- /*   convenience init?(color: UIColor, size: CGSize = CGSize(width: 1, height: 1)) {
-        let rect = CGRect(origin: .zero, size: size)
-        UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
-        color.setFill()
-        UIRectFill(rect)
-        let image = UIGraphicsGetImageFromCurrentImageContext()
-        UIGraphicsEndImageContext()
-
-        guard let cgImage = image?.cgImage else { return nil }
-        self.init(cgImage: cgImage)
-    }*/
-}

+ 0 - 8
DcCore/DcCoreTests/DcCoreTests.swift

@@ -1,11 +1,3 @@
-//
-//  DcCoreTests.swift
-//  DcCoreTests
-//
-//  Created by Macci on 08.04.20.
-//  Copyright © 2020 merlinux GmbH. All rights reserved.
-//
-
 import XCTest
 import XCTest
 @testable import DcCore
 @testable import DcCore