소스 검색

clear code

marinofaggiana 4 년 전
부모
커밋
ad08370eb3
1개의 변경된 파일0개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 14
      iOSClient/Utility/NCUtility.swift

+ 0 - 14
iOSClient/Utility/NCUtility.swift

@@ -360,21 +360,7 @@ class NCUtility: NSObject {
     @objc func isQuickLookDisplayable(metadata: tableMetadata) -> Bool {
         return true
     }
-    
-    @objc func fromColor(color: UIColor) -> UIImage {
-        
-        let rect = CGRect(x: 0, y: 0, width: 1, height: 1)
-        
-        UIGraphicsBeginImageContext(rect.size)
-        let context: CGContext? = UIGraphicsGetCurrentContext()
-        context?.setFillColor(color.cgColor)
-        context?.fill(rect)
-        let image: UIImage? = UIGraphicsGetImageFromCurrentImageContext()
-        UIGraphicsEndImageContext()
         
-        return image ?? UIImage()
-    }
-    
     // Delete Asset on Photos album
     @objc func deleteAssetLocalIdentifiers(account: String, sessionSelector: String, completition: @escaping () -> ()) {