Skip to content

Commit 4bcf0a0

Browse files
committed
Remove superfluous implementation
1 parent 5e33058 commit 4bcf0a0

File tree

5 files changed

+0
-33
lines changed

5 files changed

+0
-33
lines changed

Classes/Manager/FLEXManager+Extensibility.h

-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ NS_ASSUME_NONNULL_BEGIN
7878
action:(dispatch_block_t)action
7979
description:(NSString *)description;
8080

81-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
82-
/// Gets the default and custom keyboard shortcuts commands.
83-
- (NSArray<UIKeyCommand *> *)getKeyCommands;
84-
#endif
85-
8681
@end
8782

8883
NS_ASSUME_NONNULL_END

Classes/Manager/FLEXManager+Extensibility.m

-8
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@ - (BOOL)simulatorShortcutsEnabled {
105105
#endif
106106
}
107107

108-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
109-
110-
- (NSArray<UIKeyCommand *> *)getKeyCommands {
111-
return [FLEXKeyboardShortcutManager.sharedManager getKeyCommands];
112-
}
113-
114-
#endif
115-
116108

117109
#pragma mark - Shortcuts Defaults
118110

Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.h

-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,4 @@
2626
@property (nonatomic, getter=isEnabled) BOOL enabled;
2727
@property (nonatomic, readonly) NSString *keyboardShortcutsDescription;
2828

29-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
30-
- (NSArray<UIKeyCommand *> *)getKeyCommands;
31-
#endif
32-
3329
@end

Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.m

-10
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,6 @@ - (NSString *)keyboardShortcutsDescription {
321321
return [description copy];
322322
}
323323

324-
#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
325-
326-
- (NSArray<UIKeyCommand *> *)getKeyCommands {
327-
return [self.actionsForKeyInputs.allKeys flex_mapped:^UIKeyCommand *(FLEXKeyInput *keyInput, NSUInteger index) {
328-
return [UIKeyCommand keyCommandWithInput:keyInput.key modifierFlags:keyInput.flags action:nil];
329-
}];
330-
}
331-
332-
#endif
333-
334324
@end
335325

336326
#endif

Example/FLEXample/AppDelegate.swift

-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7777
).write(to: URL(fileURLWithPath: whereToSaveBob), options: [])
7878
}
7979

80-
#if targetEnvironment(macCatalyst) || arch(arm64)
81-
override var keyCommands: [UIKeyCommand]? {
82-
return FLEXManager.shared.getKeyCommands()
83-
}
84-
#endif
85-
8680
let exampleLogLimit = 10
8781
var exampleLogSent = 0
8882
}

0 commit comments

Comments
 (0)