marinofaggiana 5 年之前
父节点
当前提交
2bacbc5eaa
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      iOSClient/RichWorkspace/NCRichWorkspace.swift

+ 0 - 10
iOSClient/RichWorkspace/NCRichWorkspace.swift

@@ -99,14 +99,4 @@ import SwiftRichString
         textView.isUserInteractionEnabled = false
         textView.sizeToFit()
     }
-    
-    func makeGradientLayer(`for` object : UIView, startPoint : CGPoint, endPoint : CGPoint, gradientColors : [Any]) -> CAGradientLayer {
-        let gradient: CAGradientLayer = CAGradientLayer()
-        gradient.colors = gradientColors
-        gradient.locations = [0.0 , 1.0]
-        gradient.startPoint = startPoint
-        gradient.endPoint = endPoint
-        gradient.frame = CGRect(x: 0, y: 0, width: object.frame.size.width, height: object.frame.size.height)
-        return gradient
-    }
 }