From 1e8e98729797b8f7c4b0720d9bd66eb1c2124695 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sat, 25 Sep 2010 22:17:55 -0700 Subject: [PATCH] removed uneeded code for cancel/queue ui change --- Cydia.mm | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index 4400c3df..2a5b7158 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -4020,22 +4020,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [super dealloc]; } -- (void) actionSheet:(UIActionSheet *)sheet clickedButtonAtIndex:(NSInteger)button { - NSString *context([sheet context]); - - if ([context isEqualToString:@"cancel"]) { - bool clear; - - if (button == [sheet cancelButtonIndex]) return; - else if (button == [sheet destructiveButtonIndex]) clear = true; - else clear = false; - - [sheet dismissWithClickedButtonIndex:0xDEADBEEF animated:YES]; - [self dismissModalViewControllerAnimated:YES]; - [delegate_ cancelAndClear:clear]; - } -} - - (void) alertView:(UIAlertView *)alert clickedButtonAtIndex:(NSInteger)button { NSString *context([alert context]); @@ -4187,20 +4171,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) cancelButtonClicked { - /*UIActionSheet *sheet = [[UIActionSheet alloc] - initWithTitle:nil - delegate:self - cancelButtonTitle:nil - destructiveButtonTitle:nil - otherButtonTitles:nil - ]; - - [sheet addButtonWithTitle:UCLocalize("CANCEL_CLEAR")]; - [sheet setDestructiveButtonIndex:[sheet numberOfButtons] - 1]; - [sheet addButtonWithTitle:UCLocalize("CONTINUE_QUEUING")]; - [sheet setContext:@"cancel"]; - - [delegate_ showActionSheet:[sheet autorelease] fromItem:[[self navigationItem] leftBarButtonItem]];*/ [self dismissModalViewControllerAnimated:YES]; [delegate_ cancelAndClear:YES]; } -- 2.45.2