浏览代码

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 () -> ()) {