Skip to content

Commit 57459a7

Browse files
committed
remove unused WPInputMediaPickerViewController
1 parent 7991e6b commit 57459a7

File tree

3 files changed

+4
-192
lines changed

3 files changed

+4
-192
lines changed

Modules/Sources/WPMediaPicker/WPInputMediaPickerViewController.m

Lines changed: 0 additions & 134 deletions
This file was deleted.

Modules/Sources/WPMediaPicker/WPMediaPickerViewController.m

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#import "WPMediaGroupPickerViewController.h"
66
#import "WPPHAssetDataSource.h"
77
#import "WPMediaCapturePresenter.h"
8-
#import "WPInputMediaPickerViewController.h"
98
#import "WPCarouselAssetsViewController.h"
109
#import "UIViewController+MediaAdditions.h"
1110

@@ -382,7 +381,6 @@ - (void)addCollectionViewToView
382381
- (void)setupSearchBar
383382
{
384383
BOOL shouldShowSearchBar = self.options.showSearchBar &&
385-
![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]] && //Disable search bar on WPInputMediaPicker
386384
[self.dataSource respondsToSelector:@selector(searchFor:)];
387385

388386
if (shouldShowSearchBar && self.searchBar == nil) {
@@ -1470,18 +1468,14 @@ - (BOOL)isPresentedAsPopover
14701468

14711469
- (void)registerForKeyboardNotifications
14721470
{
1473-
if (![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]]) {
1474-
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillShowNotification:) name:UIKeyboardWillShowNotification object:nil];
1475-
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillHideNotification:) name:UIKeyboardWillHideNotification object:nil];
1476-
}
1471+
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillShowNotification:) name:UIKeyboardWillShowNotification object:nil];
1472+
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(keyboardWillHideNotification:) name:UIKeyboardWillHideNotification object:nil];
14771473
}
14781474

14791475
- (void)unregisterForKeyboardNotifications
14801476
{
1481-
if (![self.parentViewController isKindOfClass:[WPInputMediaPickerViewController class]]) {
1482-
[NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillShowNotification object:nil];
1483-
[NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillHideNotification object:nil];
1484-
}
1477+
[NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillShowNotification object:nil];
1478+
[NSNotificationCenter.defaultCenter removeObserver:self name:UIKeyboardWillHideNotification object:nil];
14851479
}
14861480

14871481
- (void)keyboardWillShowNotification:(NSNotification *)notification

Modules/Sources/WPMediaPicker/include/WPInputMediaPickerViewController.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)