From: Jay Freeman (saurik) Date: Thu, 7 Oct 2010 02:31:14 +0000 (-0700) Subject: UICaboodle/ResetView and resetViewAnimated: seem to be obsolete. X-Git-Tag: v1.0.3366~111 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/a9dbe12cff9b5de401da271e92ac72a285227670 UICaboodle/ResetView and resetViewAnimated: seem to be obsolete. --- diff --git a/Cydia.mm b/Cydia.mm index 97f84c8f..8f42c6de 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -119,7 +119,6 @@ extern "C" { #include #include "UICaboodle/BrowserView.h" -#include "UICaboodle/ResetView.h" #include "substrate.h" diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h index 3f759cad..d7743091 100644 --- a/UICaboodle/BrowserView.h +++ b/UICaboodle/BrowserView.h @@ -1,4 +1,7 @@ -#import "ResetView.h" +#import +#import + +#import #include #include diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 793678ef..9b0c93d6 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1612,9 +1612,6 @@ static Class $UIWebBrowserView; [[[[self navigationItem] rightBarButtonItem] view] addSubview:indicator_]; } -- (void) resetViewAnimated:(BOOL)animated { -} - - (void) setPushed:(bool)pushed { pushed_ = pushed; } diff --git a/UICaboodle/ResetView.h b/UICaboodle/ResetView.h deleted file mode 100644 index 9f9fafbe..00000000 --- a/UICaboodle/ResetView.h +++ /dev/null @@ -1,14 +0,0 @@ -#import -#import - -#import - -@interface UIView (RVBook) -- (void) resetViewAnimated:(BOOL)animated; -- (void) clearView; -@end - -@interface UITableView (RVBook) -- (void) resetViewAnimated:(BOOL)animated; -- (void) clearView; -@end diff --git a/UICaboodle/ResetView.mm b/UICaboodle/ResetView.mm deleted file mode 100644 index ffdb0431..00000000 --- a/UICaboodle/ResetView.mm +++ /dev/null @@ -1,37 +0,0 @@ -#import "ResetView.h" - -#include -#include - -#include - -#include -#include - -@implementation UIView (RVBook) - -- (void) resetViewAnimated:(BOOL)animated { - fprintf(stderr, "%s\n", class_getName(self->isa)); - _assert(false); -} - -- (void) clearView { - fprintf(stderr, "%s\n", class_getName(self->isa)); - _assert(false); -} - -@end - -@implementation UITableView (RVBook) - -- (void) resetViewAnimated:(BOOL)animated { - //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone]; - if (NSIndexPath *path = [self indexPathForSelectedRow]) - [self deselectRowAtIndexPath:path animated:animated]; -} - -- (void) clearView { - //XXX:[[self table] clearView]; -} - -@end