From 72e1180e163f5e0d15e1a4ddd72aca27acfad6f3 Mon Sep 17 00:00:00 2001 From: Arek Banas Date: Fri, 12 Feb 2016 16:53:08 +0100 Subject: [PATCH] Removing unused didReceiveMemoryWarning methods from view controllers. Closes #1078 --- Signal/src/view controllers/APNavigationController.m | 5 ----- .../view controllers/AdvancedSettingsTableViewController.m | 4 ---- .../src/view controllers/CodeVerificationViewController.m | 5 ----- Signal/src/view controllers/FingerprintViewController.m | 4 ---- Signal/src/view controllers/FullImageViewController.m | 6 ------ .../view controllers/MessageComposeTableViewController.m | 5 ----- Signal/src/view controllers/MessagesViewController.m | 4 ---- Signal/src/view controllers/NewGroupViewController.m | 4 ---- .../view controllers/PresentIdentityQRCodeViewController.m | 6 ------ Signal/src/view controllers/RegistrationViewController.m | 6 ------ .../src/view controllers/ShowGroupMembersViewController.m | 4 ---- Signal/src/view controllers/SignalsNavigationController.m | 5 ----- 12 files changed, 58 deletions(-) diff --git a/Signal/src/view controllers/APNavigationController.m b/Signal/src/view controllers/APNavigationController.m index 4da58622e..50098158d 100644 --- a/Signal/src/view controllers/APNavigationController.m +++ b/Signal/src/view controllers/APNavigationController.m @@ -35,11 +35,6 @@ self.originalNavigationBarTitle = self.navigationBar.topItem.title; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - (void)toggleDropDown:(id)sender { if (self.isDropDownVisible) { [self hideDropDown:sender]; diff --git a/Signal/src/view controllers/AdvancedSettingsTableViewController.m b/Signal/src/view controllers/AdvancedSettingsTableViewController.m index 26b800ae9..7a988e728 100644 --- a/Signal/src/view controllers/AdvancedSettingsTableViewController.m +++ b/Signal/src/view controllers/AdvancedSettingsTableViewController.m @@ -41,10 +41,6 @@ return [super initWithStyle:UITableViewStyleGrouped]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - (void)loadView { [super loadView]; diff --git a/Signal/src/view controllers/CodeVerificationViewController.m b/Signal/src/view controllers/CodeVerificationViewController.m index 9e2cb82d5..2564c694f 100644 --- a/Signal/src/view controllers/CodeVerificationViewController.m +++ b/Signal/src/view controllers/CodeVerificationViewController.m @@ -49,11 +49,6 @@ [self adjustScreenSizes]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - - (IBAction)verifyChallengeAction:(id)sender { [self enableServerActions:NO]; [_challengeTextField resignFirstResponder]; diff --git a/Signal/src/view controllers/FingerprintViewController.m b/Signal/src/view controllers/FingerprintViewController.m index 70104fffb..4bc4f51d0 100644 --- a/Signal/src/view controllers/FingerprintViewController.m +++ b/Signal/src/view controllers/FingerprintViewController.m @@ -67,10 +67,6 @@ static NSString *const kScanIdentityBarcodeViewSegue = @"ScanIdentityBarcodeVi completion:nil]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - (void)setTheirKeyInformation { self.contactFingerprintTitleLabel.text = self.thread.name; NSData *identityKey = [[TSStorageManager sharedManager] identityKeyForRecipientId:self.thread.contactIdentifier]; diff --git a/Signal/src/view controllers/FullImageViewController.m b/Signal/src/view controllers/FullImageViewController.m index 66c0fe825..0bf9c2c8e 100644 --- a/Signal/src/view controllers/FullImageViewController.m +++ b/Signal/src/view controllers/FullImageViewController.m @@ -79,12 +79,6 @@ [self populateImageView:self.image]; } - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - #pragma mark - Initializers - (void)initializeBackground { diff --git a/Signal/src/view controllers/MessageComposeTableViewController.m b/Signal/src/view controllers/MessageComposeTableViewController.m index 2adebcc64..d566632f2 100644 --- a/Signal/src/view controllers/MessageComposeTableViewController.m +++ b/Signal/src/view controllers/MessageComposeTableViewController.m @@ -51,11 +51,6 @@ self.title = NSLocalizedString(@"MESSAGE_COMPOSEVIEW_TITLE", @""); } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; diff --git a/Signal/src/view controllers/MessagesViewController.m b/Signal/src/view controllers/MessagesViewController.m index 98a4e4e63..9bfd086a9 100644 --- a/Signal/src/view controllers/MessagesViewController.m +++ b/Signal/src/view controllers/MessagesViewController.m @@ -304,10 +304,6 @@ typedef enum : NSUInteger { self.inputToolbar.contentView.textView.editable = NO; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - #pragma mark - Initiliazers diff --git a/Signal/src/view controllers/NewGroupViewController.m b/Signal/src/view controllers/NewGroupViewController.m index fcc178c9d..20fcef2ff 100644 --- a/Signal/src/view controllers/NewGroupViewController.m +++ b/Signal/src/view controllers/NewGroupViewController.m @@ -90,10 +90,6 @@ static NSString *const kUnwindToMessagesViewSegue = @"UnwindToMessagesViewSegue" _addPeopleLabel.text = NSLocalizedString(@"NEW_GROUP_REQUEST_ADDPEOPLE", @""); } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - #pragma mark - Initializers - (void)initializeDelegates { diff --git a/Signal/src/view controllers/PresentIdentityQRCodeViewController.m b/Signal/src/view controllers/PresentIdentityQRCodeViewController.m index 7b6259dcc..beddfc7bd 100644 --- a/Signal/src/view controllers/PresentIdentityQRCodeViewController.m +++ b/Signal/src/view controllers/PresentIdentityQRCodeViewController.m @@ -13,12 +13,6 @@ @implementation PresentIdentityQRCodeViewController - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - - - (void)viewDidLoad { [super viewDidLoad]; diff --git a/Signal/src/view controllers/RegistrationViewController.m b/Signal/src/view controllers/RegistrationViewController.m index e3a4b2c81..02b14894f 100644 --- a/Signal/src/view controllers/RegistrationViewController.m +++ b/Signal/src/view controllers/RegistrationViewController.m @@ -58,12 +58,6 @@ static NSString *const kCodeSentSegue = @"codeSent"; [_phoneNumberTextField becomeFirstResponder]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - #pragma mark - Locale - (void)populateDefaultCountryNameAndCode { diff --git a/Signal/src/view controllers/ShowGroupMembersViewController.m b/Signal/src/view controllers/ShowGroupMembersViewController.m index 3b2ac25ee..b0da559fb 100644 --- a/Signal/src/view controllers/ShowGroupMembersViewController.m +++ b/Signal/src/view controllers/ShowGroupMembersViewController.m @@ -55,10 +55,6 @@ static NSString *const kUnwindToMessagesViewSegue = @"UnwindToMessagesViewSegue" untilCancelled:nil]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; -} - #pragma mark - Initializers diff --git a/Signal/src/view controllers/SignalsNavigationController.m b/Signal/src/view controllers/SignalsNavigationController.m index b4bede9a5..17003817a 100644 --- a/Signal/src/view controllers/SignalsNavigationController.m +++ b/Signal/src/view controllers/SignalsNavigationController.m @@ -25,11 +25,6 @@ static double const STALLED_PROGRESS = 0.9; [TSSocketManager sendNotification]; } -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - - (void)initializeSocketStatusBar { if (!_socketStatusView) { _socketStatusView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];