summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cydia.mm1
-rw-r--r--UICaboodle/BrowserView.h5
-rw-r--r--UICaboodle/BrowserView.mm3
-rw-r--r--UICaboodle/ResetView.h14
-rw-r--r--UICaboodle/ResetView.mm37
5 files changed, 4 insertions, 56 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 97f84c8..8f42c6d 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -119,7 +119,6 @@ extern "C" {
#include <ext/hash_map>
#include "UICaboodle/BrowserView.h"
-#include "UICaboodle/ResetView.h"
#include "substrate.h"
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h
index 3f759ca..d774309 100644
--- a/UICaboodle/BrowserView.h
+++ b/UICaboodle/BrowserView.h
@@ -1,4 +1,7 @@
-#import "ResetView.h"
+#import <UICaboodle/RVPage.h>
+#import <UICaboodle/RVBook.h>
+
+#import <UIKit/UIKit.h>
#include <WebKit/DOMNodeList.h>
#include <WebKit/WebFrame.h>
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 793678e..9b0c93d 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 9f9fafb..0000000
--- a/UICaboodle/ResetView.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#import <UICaboodle/RVPage.h>
-#import <UICaboodle/RVBook.h>
-
-#import <UIKit/UIKit.h>
-
-@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 ffdb043..0000000
--- a/UICaboodle/ResetView.mm
+++ /dev/null
@@ -1,37 +0,0 @@
-#import "ResetView.h"
-
-#include <objc/objc.h>
-#include <objc/runtime.h>
-
-#include <errno.h>
-
-#include <cstdio>
-#include <cstdlib>
-
-@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