Browse Source

clear code

marinofaggiana 4 years ago
parent
commit
a669348b17

+ 1 - 1
File Provider Extension/FileProviderData.swift

@@ -24,7 +24,7 @@
 import NCCommunication
 
 class fileProviderData: NSObject {
-    @objc static let shared: fileProviderData = {
+    static let shared: fileProviderData = {
         let instance = fileProviderData()
         return instance
     }()

+ 2 - 2
File Provider Extension/FileProviderDomain.swift

@@ -25,7 +25,7 @@ import Foundation
 
 class FileProviderDomain: NSObject {
     
-    @objc func registerDomains() {
+    func registerDomains() {
         
         NSFileProviderManager.getDomainsWithCompletionHandler { (fileProviderDomain, error) in
             
@@ -83,7 +83,7 @@ class FileProviderDomain: NSObject {
         }
     }
     
-    @objc func removeAllDomains() {
+    func removeAllDomains() {
         
         NSFileProviderManager.removeAllDomains { (_) in }
     }

+ 1 - 1
File Provider Extension/FileProviderUtility.swift

@@ -22,7 +22,7 @@
 //
 
 class fileProviderUtility: NSObject {
-    @objc static let shared: fileProviderUtility = {
+    static let shared: fileProviderUtility = {
         let instance = fileProviderUtility()
         return instance
     }()

+ 2 - 2
iOSClient/AppDelegate.swift

@@ -44,7 +44,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     var activeFavorite: NCFavorite?
     var activeFiles: NCFiles?
     var activeFileViewInFolder: NCFileViewInFolder?
-    @objc var activeLogin: NCLogin?
+    var activeLogin: NCLogin?
     var activeLoginWeb: NCLoginWeb?
     @objc var activeMedia: NCMedia?
     var activeMore: NCMore?
@@ -68,7 +68,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
     var passcodeViewController: TOPasscodeViewController?
     var pasteboardOcIds: [String] = []
     var shares: [tableShare] = []
-    @objc var timerErrorNetworking: Timer?
+    var timerErrorNetworking: Timer?
 
     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
         

+ 1 - 1
iOSClient/Main/ActionSheetHeaderView/NCActionSheetHeader.swift

@@ -25,7 +25,7 @@ import Foundation
 
 class NCActionSheetHeader: NSObject {
     
-    @objc static let shared: NCActionSheetHeader = {
+    static let shared: NCActionSheetHeader = {
         let instance = NCActionSheetHeader()
         return instance
     }()

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadAssets.swift

@@ -328,7 +328,7 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate {
     }
     
     /*
-    @objc func save() {
+    func save() {
         
         self.dismiss(animated: true, completion: {
             

+ 1 - 1
iOSClient/Main/Menu/AppDelegate+Menu.swift

@@ -28,7 +28,7 @@ import NCCommunication
 
 extension AppDelegate: NCAudioRecorderViewControllerDelegate {
     
-    @objc public func showMenuIn(viewController: UIViewController) {
+    public func showMenuIn(viewController: UIViewController) {
         
         let mainMenuViewController = UIStoryboard.init(name: "NCMenu", bundle: nil).instantiateViewController(withIdentifier: "NCMainMenuTableViewController") as! NCMainMenuTableViewController
         mainMenuViewController.actions = self.initMenu(viewController: viewController)

+ 2 - 2
iOSClient/Main/Menu/NCSortMenu.swift

@@ -39,7 +39,7 @@ class NCSortMenu: NSObject {
     private var titleButton = ""
     private var itemForLine: Int = 0
 
-    @objc func toggleMenu(viewController: UIViewController, key: String, sortButton: UIButton?, serverUrl: String, hideDirectoryOnTop: Bool = false) {
+    func toggleMenu(viewController: UIViewController, key: String, sortButton: UIButton?, serverUrl: String, hideDirectoryOnTop: Bool = false) {
         
         self.key = key
         self.sortButton = sortButton
@@ -60,7 +60,7 @@ class NCSortMenu: NSObject {
         viewController.present(menuPanelController, animated: true, completion: nil)
     }
     
-    @objc func actionMenu() {
+    func actionMenu() {
                 
         switch sort {
         case "fileName":

+ 1 - 1
iOSClient/Main/Menu/NCViewer+Menu.swift

@@ -26,7 +26,7 @@ import NCCommunication
 
 extension NCViewer {
 
-    @objc func toggleMoreMenu(viewController: UIViewController, metadata: tableMetadata, webView: Bool) {
+    func toggleMoreMenu(viewController: UIViewController, metadata: tableMetadata, webView: Bool) {
         
         let mainMenuViewController = UIStoryboard.init(name: "NCMenu", bundle: nil).instantiateViewController(withIdentifier: "NCMainMenuTableViewController") as! NCMainMenuTableViewController