@@ -14,12 +14,6 @@ enum ShortcutType: String {
14
14
case openLastBookmark = " OpenLastBookmark "
15
15
case qrCode = " QRCode "
16
16
17
- init ? ( fullType: String ) {
18
- guard let last = fullType. components ( separatedBy: " . " ) . last else { return nil }
19
-
20
- self . init ( rawValue: last)
21
- }
22
-
23
17
var type : String {
24
18
return Bundle . main. bundleIdentifier! + " . \( self . rawValue) "
25
19
}
@@ -35,12 +29,6 @@ struct QuickActionInfos {
35
29
36
30
// MARK: - QuickActions
37
31
protocol QuickActions {
38
- func addDynamicApplicationShortcutItemOfType(
39
- _ type: ShortcutType ,
40
- fromShareItem shareItem: ShareItem ,
41
- toApplication application: UIApplication
42
- )
43
-
44
32
func addDynamicApplicationShortcutItemOfType(
45
33
_ type: ShortcutType ,
46
34
withUserData userData: [ String : String ] ,
@@ -64,25 +52,7 @@ extension QuickActions {
64
52
}
65
53
66
54
struct QuickActionsImplementation : QuickActions {
67
- private let logger : Logger
68
-
69
- init ( logger: Logger = DefaultLogger . shared) {
70
- self . logger = logger
71
- }
72
-
73
55
// MARK: Administering Quick Actions
74
- func addDynamicApplicationShortcutItemOfType( _ type: ShortcutType ,
75
- fromShareItem shareItem: ShareItem ,
76
- toApplication application: UIApplication ) {
77
- var userData = [ QuickActionInfos . tabURLKey: shareItem. url]
78
- if let title = shareItem. title {
79
- userData [ QuickActionInfos . tabTitleKey] = title
80
- }
81
- addDynamicApplicationShortcutItemOfType ( type,
82
- withUserData: userData,
83
- toApplication: application)
84
- }
85
-
86
56
func addDynamicApplicationShortcutItemOfType(
87
57
_ type: ShortcutType ,
88
58
withUserData userData: [ String : String ] = [ String: String] ( ) ,
0 commit comments