diff options
author | Vitaly Takmazov | 2019-03-24 11:36:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-24 11:36:47 +0300 |
commit | e16eb980016b370f16bb8315434152decc1239b3 (patch) | |
tree | e89495935d03266393dd32ce0da2a4a3a1d46be2 /Juick/ViewControllers/MessagesViewController.m | |
parent | ada66381c8de790190278a465b9f860461b8c512 (diff) |
Cleanup unused code
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m index 88bee93..57087d7 100644 --- a/Juick/ViewControllers/MessagesViewController.m +++ b/Juick/ViewControllers/MessagesViewController.m @@ -33,11 +33,7 @@ NSString* const messageCellIdentifier = @"messageCell"; } [[APIClient sharedClient] pullNextFromPath:self.path params:self.params callback:^(NSArray *next, NSError *err) { if (err) { - if ([err.domain isEqual: @"JuickErrorDomain"] && err.code == 401) { - [self.messagesDelegate didReceiveChallenge]; - } else { - [User throwUnableToLogin:self error:err]; - } + [User throwUnableToLogin:self error:err]; return; } NSArray *newMsgs = next; @@ -141,24 +137,6 @@ NSString* const messageCellIdentifier = @"messageCell"; -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { /* - NSNumber *mid; - Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row]; - BOOL scrollToEnd = NO; - if ([AppDelegate shared].pushedThread != nil) { - mid = [[AppDelegate shared].pushedThread copy]; - [AppDelegate shared].pushedThread = nil; - [AppDelegate shared].pushedUname = nil; - scrollToEnd = YES; - } else { - mid = msg.mid; - } - if ([mid integerValue] > 0) { - ThreadViewController *threadVC = (ThreadViewController *)segue.destinationViewController; - [threadVC setMessages:[@[msg] mutableCopy]]; - [threadVC setPath:[APIClient threadUrl]]; - [threadVC setParams:@{@"mid": mid }]; - [threadVC setShouldScrollToBottomOnRefresh:scrollToEnd]; - } if ([segue.identifier isEqual: @"profileSegue"]) { BlogViewController *blogVC = (BlogViewController *)segue.destinationViewController; [blogVC setUname:self.selectedUser]; |