From 474d96bb73506523b1e47444575d92432c482c1c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 11 Jul 2012 13:12:22 -0700 Subject: Remove obsolete UIProgressBar: fix for iOS 6.0. --- MobileCydia.mm | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 2371e26..22ed6cb 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6754,7 +6754,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi @interface RefreshBar : UINavigationBar { _H indicator_; _H prompt_; - _H progress_; _H cancel_; } @@ -6769,13 +6768,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi frame.origin.y = ([self frame].size.height - frame.size.height) / 2; [cancel_ setFrame:frame]; - CGSize prgsize = {75, 100}; - CGRect prgrect = {{ - [self frame].size.width - prgsize.width - 10, - ([self frame].size.height - prgsize.height) / 2 - } , prgsize}; - [progress_ setFrame:prgrect]; - CGSize indsize([UIProgressIndicator defaultSizeForStyle:[indicator_ activityIndicatorViewStyle]]); unsigned indoffset = ([self frame].size.height - indsize.height) / 2; CGRect indrect = {{indoffset, indoffset}, indsize}; @@ -6818,11 +6810,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi [prompt_ setFont:[UIFont systemFontOfSize:15]]; [self addSubview:prompt_]; - progress_ = [[[UIProgressBar alloc] initWithFrame:CGRectZero] autorelease]; - [progress_ setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleLeftMargin]; - [(UIProgressBar *) progress_ setStyle:0]; - [self addSubview:progress_]; - cancel_ = [[[UINavigationButton alloc] initWithTitle:UCLocalize("CANCEL") style:UINavigationButtonStyleHighlighted] autorelease]; [cancel_ setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin]; [cancel_ addTarget:delegate action:@selector(cancelPressed) forControlEvents:UIControlEventTouchUpInside]; @@ -6841,7 +6828,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) start { [prompt_ setText:UCLocalize("UPDATING_DATABASE")]; - [progress_ setProgress:0]; } - (void) stop { @@ -6853,7 +6839,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi } - (void) setProgress:(float)progress { - [progress_ setProgress:progress]; } @end -- cgit v1.2.3