Clean up debug scaffolding.

// FREEBIE
pull/1/head
Matthew Chen 9 years ago
parent f5cd39ea35
commit da7dd1b128

@ -105,6 +105,11 @@ NS_ASSUME_NONNULL_BEGIN
return YES; return YES;
} }
- (BOOL)shouldHideContacts
{
return NO;
}
- (BOOL)shouldValidatePhoneNumbers - (BOOL)shouldValidatePhoneNumbers
{ {
return NO; return NO;

@ -74,11 +74,6 @@ typedef NS_ENUM(NSInteger, BlockListViewControllerSection) {
{ {
[super viewDidLoad]; [super viewDidLoad];
[self.navigationController.navigationBar setTranslucent:NO]; [self.navigationController.navigationBar setTranslucent:NO];
dispatch_async(dispatch_get_main_queue(), ^{
AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init];
[self.navigationController pushViewController:vc animated:YES];
});
} }
#pragma mark - Table view data source #pragma mark - Table view data source

@ -157,13 +157,6 @@ NSString *const MessageComposeTableViewControllerCellContact = @"ContactTableVie
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
[self createLoadingAndBackgroundViews]; [self createLoadingAndBackgroundViews];
self.title = NSLocalizedString(@"MESSAGE_COMPOSEVIEW_TITLE", @""); self.title = NSLocalizedString(@"MESSAGE_COMPOSEVIEW_TITLE", @"");
dispatch_async(dispatch_get_main_queue(), ^{
NewGroupViewController *newGroupViewController = [NewGroupViewController new];
// [[UIStoryboard main] instantiateViewControllerWithIdentifier:@"NewGroupViewController"];
// [newGroupViewController configWithThread:(TSGroupThread *)self.thread];
[self.navigationController pushViewController:newGroupViewController animated:YES];
});
} }
- (void)viewWillAppear:(BOOL)animated - (void)viewWillAppear:(BOOL)animated

@ -409,12 +409,6 @@ typedef enum : NSUInteger {
contactsManager:self.contactsManager contactsManager:self.contactsManager
blockingManager:self.blockingManager]; blockingManager:self.blockingManager];
} }
dispatch_async(dispatch_get_main_queue(), ^{
// [self performSegueWithIdentifier:@"composeNew" sender:self];
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
[self showConversationSettings];
});
} }
- (void)viewDidLayoutSubviews - (void)viewDidLayoutSubviews
@ -737,13 +731,6 @@ typedef enum : NSUInteger {
_callOnOpen = NO; _callOnOpen = NO;
} }
[self updateNavigationBarSubtitleLabel]; [self updateNavigationBarSubtitleLabel];
// dispatch_async(dispatch_get_main_queue(), ^{
// // [self performSegueWithIdentifier:@"composeNew" sender:self];
// // TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
// // [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
// [self showConversationSettings];
// });
} }
- (void)viewWillDisappear:(BOOL)animated { - (void)viewWillDisappear:(BOOL)animated {

@ -499,9 +499,8 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssert(image); OWSAssert(image);
self.avatarView.image = image; self.avatarView.image = image;
// TODO. self.avatarView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
// self.groupImageButton.imageView.layer.borderColor = [[UIColor lightGrayColor] CGColor]; self.avatarView.layer.borderWidth = 0.5f;
// self.groupImageButton.imageView.layer.borderWidth = 0.5f;
self.avatarView.contentMode = UIViewContentModeScaleAspectFill; self.avatarView.contentMode = UIViewContentModeScaleAspectFill;
} }
@ -525,16 +524,6 @@ NS_ASSUME_NONNULL_BEGIN
NSLocalizedString(@"NEW_GROUP_VIEW_UNSAVED_CHANGES_MESSAGE", NSLocalizedString(@"NEW_GROUP_VIEW_UNSAVED_CHANGES_MESSAGE",
@"The alert message if user tries to exit the new group view without saving changes.") @"The alert message if user tries to exit the new group view without saving changes.")
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];
[controller addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ALERT_SAVE",
@"The label for the 'save' button in action sheets.")
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) {
OWSAssert(self.delegate);
[self createGroup];
[self.delegate popAllConversationSettingsViews];
}]];
[controller [controller
addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ALERT_DISCARD_BUTTON", addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ALERT_DISCARD_BUTTON",
@"The label for the 'discard' button in alerts and action sheets.") @"The label for the 'discard' button in alerts and action sheets.")

@ -140,29 +140,6 @@ NS_ASSUME_NONNULL_BEGIN
} }
[self updateTableContents]; [self updateTableContents];
if ([self.thread isKindOfClass:[TSGroupThread class]]) {
dispatch_async(dispatch_get_main_queue(), ^{
OWSAssert(self.delegate);
UpdateGroupViewController *updateGroupViewController = [UpdateGroupViewController new];
updateGroupViewController.delegate = self.delegate;
updateGroupViewController.thread = (TSGroupThread *)self.thread;
[self.navigationController pushViewController:updateGroupViewController animated:YES];
});
}
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
// dispatch_async(dispatch_get_main_queue(), ^{
// OWSAssert(self.delegate);
// UpdateGroupViewController *updateGroupViewController = [UpdateGroupViewController new];
// updateGroupViewController.delegate = self.delegate;
// [updateGroupViewController configWithThread:(TSGroupThread *)self.thread];
// [self.navigationController pushViewController:updateGroupViewController animated:YES];
// });
} }
- (void)updateTableContents - (void)updateTableContents

@ -52,11 +52,6 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
[self.navigationController.navigationBar setTranslucent:NO]; [self.navigationController.navigationBar setTranslucent:NO];
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
dispatch_async(dispatch_get_main_queue(), ^{
BlockListViewController *vc = [[BlockListViewController alloc] init];
[self.navigationController pushViewController:vc animated:YES];
});
} }
- (instancetype)init { - (instancetype)init {

@ -105,11 +105,6 @@ typedef enum {
[self.destroyAccountButton setTitle:NSLocalizedString(@"SETTINGS_DELETE_ACCOUNT_BUTTON", @"") [self.destroyAccountButton setTitle:NSLocalizedString(@"SETTINGS_DELETE_ACCOUNT_BUTTON", @"")
forState:UIControlStateNormal]; forState:UIControlStateNormal];
dispatch_async(dispatch_get_main_queue(), ^{
PrivacySettingsTableViewController *vc = [[PrivacySettingsTableViewController alloc] init];
[self.navigationController pushViewController:vc animated:YES];
});
} }
- (void)viewWillAppear:(BOOL)animated - (void)viewWillAppear:(BOOL)animated

@ -163,15 +163,6 @@ NSString *const SignalsViewControllerSegueShowIncomingCall = @"ShowIncomingCallS
object:nil]; object:nil];
[self updateBarButtonItems]; [self updateBarButtonItems];
dispatch_async(dispatch_get_main_queue(), ^{
// [self settingsButtonPressed:nil];
[self performSegueWithIdentifier:@"composeNew" sender:self];
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
});
} }
- (void)updateBarButtonItems { - (void)updateBarButtonItems {
@ -297,12 +288,6 @@ NSString *const SignalsViewControllerSegueShowIncomingCall = @"ShowIncomingCallS
} else { } else {
[self displayAnyUnseenUpgradeExperience]; [self displayAnyUnseenUpgradeExperience];
} }
// dispatch_async(dispatch_get_main_queue(), ^{
// // [self performSegueWithIdentifier:@"composeNew" sender:self];
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
// });
} }
#pragma mark - startup #pragma mark - startup

@ -121,12 +121,6 @@ NS_ASSUME_NONNULL_BEGIN
[_tableViewController.view autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:firstSection]; [_tableViewController.view autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:firstSection];
[_tableViewController.view autoPinEdgeToSuperviewEdge:ALEdgeBottom]; [_tableViewController.view autoPinEdgeToSuperviewEdge:ALEdgeBottom];
dispatch_async(dispatch_get_main_queue(), ^{
AddToGroupViewController *viewController = [AddToGroupViewController new];
viewController.addToGroupDelegate = self;
[self.navigationController pushViewController:viewController animated:YES];
});
[self updateTableContents]; [self updateTableContents];
} }
@ -407,12 +401,8 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssert(image); OWSAssert(image);
self.avatarView.image = image; self.avatarView.image = image;
// [self.avatarView setImage:image forState:UIControlStateNormal]; self.avatarView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
// self.groupImageButton.imageView.layer.cornerRadius = CGRectGetWidth([self.groupImageButton.imageView frame]) self.avatarView.layer.borderWidth = 0.5f;
// / 2.0f; self.groupImageButton.imageView.layer.masksToBounds = YES;
// TODO.
// self.groupImageButton.imageView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
// self.groupImageButton.imageView.layer.borderWidth = 0.5f;
self.avatarView.contentMode = UIViewContentModeScaleAspectFill; self.avatarView.contentMode = UIViewContentModeScaleAspectFill;
} }

Loading…
Cancel
Save