Skip to content
Browse files

Remove unused focusing code from NSView and TUIView bridging categories

  • Loading branch information...
1 parent 6e88621 commit f5ab5ef0c5285df25c256726bb73a1e5da7e1a47 @jspahrsummers jspahrsummers committed Jul 18, 2012
Showing with 0 additions and 24 deletions.
  1. +0 −12 lib/UIKit/NSView+TUIExtensions.m
  2. +0 −12 lib/UIKit/TUIView+TUIBridgedView.m
View
12 lib/UIKit/NSView+TUIExtensions.m
@@ -41,18 +41,6 @@ - (void)setHostView:(id<TUIHostView>)hostView {
objc_setAssociatedObject(self, @selector(hostView), hostView, OBJC_ASSOCIATION_ASSIGN);
}
-- (BOOL)isFocused {
- return [objc_getAssociatedObject(self, @selector(isFocused)) boolValue];
-}
-
-- (void)setFocused:(BOOL)focused {
- objc_setAssociatedObject(self, @selector(isFocused), [NSNumber numberWithBool:focused], OBJC_ASSOCIATION_COPY_NONATOMIC);
-
- for (NSView *view in self.subviews) {
- view.focused = focused;
- }
-}
-
- (void)ancestorDidLayout; {
[self.subviews makeObjectsPerformSelector:_cmd];
}
View
12 lib/UIKit/TUIView+TUIBridgedView.m
@@ -172,17 +172,5 @@ - (void)viewHierarchyDidChange; {
[self.subviews makeObjectsPerformSelector:_cmd];
}
-- (BOOL)isFocused {
- return [objc_getAssociatedObject(self, @selector(isFocused)) boolValue];
-}
-
-- (void)setFocused:(BOOL)focused {
- objc_setAssociatedObject(self, @selector(isFocused), [NSNumber numberWithBool:focused], OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-
- for (TUIView *view in self.subviews) {
- view.focused = focused;
- }
-}
-
@end

0 comments on commit f5ab5ef

Please sign in to comment.
Something went wrong with that request. Please try again.