Skip to content

Commit

Permalink
Remove superfluous implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
revolter committed Apr 29, 2022
1 parent 5e33058 commit 4bcf0a0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 33 deletions.
5 changes: 0 additions & 5 deletions Classes/Manager/FLEXManager+Extensibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ NS_ASSUME_NONNULL_BEGIN
action:(dispatch_block_t)action
description:(NSString *)description;

#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
/// Gets the default and custom keyboard shortcuts commands.
- (NSArray<UIKeyCommand *> *)getKeyCommands;
#endif

@end

NS_ASSUME_NONNULL_END
8 changes: 0 additions & 8 deletions Classes/Manager/FLEXManager+Extensibility.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,6 @@ - (BOOL)simulatorShortcutsEnabled {
#endif
}

#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64

- (NSArray<UIKeyCommand *> *)getKeyCommands {
return [FLEXKeyboardShortcutManager.sharedManager getKeyCommands];
}

#endif


#pragma mark - Shortcuts Defaults

Expand Down
4 changes: 0 additions & 4 deletions Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@
@property (nonatomic, getter=isEnabled) BOOL enabled;
@property (nonatomic, readonly) NSString *keyboardShortcutsDescription;

#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64
- (NSArray<UIKeyCommand *> *)getKeyCommands;
#endif

@end
10 changes: 0 additions & 10 deletions Classes/Utility/Keyboard/FLEXKeyboardShortcutManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,6 @@ - (NSString *)keyboardShortcutsDescription {
return [description copy];
}

#if TARGET_OS_MACCATALYST || TARGET_CPU_ARM64

- (NSArray<UIKeyCommand *> *)getKeyCommands {
return [self.actionsForKeyInputs.allKeys flex_mapped:^UIKeyCommand *(FLEXKeyInput *keyInput, NSUInteger index) {
return [UIKeyCommand keyCommandWithInput:keyInput.key modifierFlags:keyInput.flags action:nil];
}];
}

#endif

@end

#endif
6 changes: 0 additions & 6 deletions Example/FLEXample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
).write(to: URL(fileURLWithPath: whereToSaveBob), options: [])
}

#if targetEnvironment(macCatalyst) || arch(arm64)
override var keyCommands: [UIKeyCommand]? {
return FLEXManager.shared.getKeyCommands()
}
#endif

let exampleLogLimit = 10
var exampleLogSent = 0
}

0 comments on commit 4bcf0a0

Please sign in to comment.