Permalink
Browse files

Remove unused categories that got accidentally versioned

  • Loading branch information...
1 parent 6f7c084 commit 6e88621e1604c0f55da840ce64281cdb01a621a1 @jspahrsummers jspahrsummers committed Jul 18, 2012
@@ -1,19 +0,0 @@
-//
-// NSClipView+TUIExtensions.h
-// TwUI
-//
-// Created by Justin Spahr-Summers on 17.07.12.
-//
-// Portions of this code were taken from Velvet,
-// which is copyright (c) 2012 Bitswift, Inc.
-// See LICENSE.txt for more information.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <Velvet/TUIBridgedScrollView.h>
-
-/**
- * Implements <TUIBridgedScrollView> for `NSClipView`.
- */
-@interface NSClipView (TUIExtensions) <TUIBridgedScrollView>
-@end
@@ -1,47 +0,0 @@
-//
-// NSClipView+TUIExtensions.m
-// TwUI
-//
-// Created by Justin Spahr-Summers on 17.07.12.
-//
-// Portions of this code were taken from Velvet,
-// which is copyright (c) 2012 Bitswift, Inc.
-// See LICENSE.txt for more information.
-//
-
-#import "NSClipView+TUIExtensions.h"
-#import "EXTSafeCategory.h"
-#import <objc/runtime.h>
-
-@safecategory (NSClipView, TUIExtensions)
-
-#pragma mark Category initialization
-
-+ (void)load {
- class_addProtocol([NSClipView class], @protocol(TUIBridgedScrollView));
-}
-
-#pragma mark TUIBridgedScrollView
-
-- (void)scrollToIncludeRect:(CGRect)rect; {
- CGRect visibleRect = self.documentVisibleRect;
- CGSize visibleSize = visibleRect.size;
-
- CGPoint newScrollPoint = visibleRect.origin;
-
- if (CGRectGetMinX(rect) < CGRectGetMinX(visibleRect)) {
- newScrollPoint.x = CGRectGetMinX(rect);
- } else if (CGRectGetMaxX(rect) > CGRectGetMaxX(visibleRect)) {
- newScrollPoint.x = fmax(0, CGRectGetMaxX(rect) - visibleSize.width);
- }
-
- if (CGRectGetMinY(rect) < CGRectGetMinY(visibleRect)) {
- newScrollPoint.y = CGRectGetMinY(rect);
- } else if (CGRectGetMaxY(rect) > CGRectGetMaxY(visibleRect)) {
- newScrollPoint.y = fmax(0, CGRectGetMaxY(rect) - visibleSize.width);
- }
-
- [self scrollToPoint:newScrollPoint];
-}
-
-@end
@@ -1,23 +0,0 @@
-//
-// NSScrollView+TUIExtensions.h
-// TwUI
-//
-// Created by Justin Spahr-Summers on 17.07.12.
-//
-// Portions of this code were taken from Velvet,
-// which is copyright (c) 2012 Bitswift, Inc.
-// See LICENSE.txt for more information.
-//
-
-#import <Cocoa/Cocoa.h>
-#import <Velvet/TUIBridgedScrollView.h>
-
-/**
- * Implements <TUIBridgedScrollView> for `NSScrollView`.
- *
- * Because the <TUIBridgedScrollView> protocol is already implemented for `NSClipView`,
- * this category is simply a convenience that invokes the protocol methods
- * against the underlying `contentView`.
- */
-@interface NSScrollView (TUIExtensions) <TUIBridgedScrollView>
-@end
@@ -1,35 +0,0 @@
-//
-// NSScrollView+TUIExtensions.m
-// TwUI
-//
-// Created by Justin Spahr-Summers on 17.07.12.
-//
-// Portions of this code were taken from Velvet,
-// which is copyright (c) 2012 Bitswift, Inc.
-// See LICENSE.txt for more information.
-//
-
-#import "NSScrollView+TUIExtensions.h"
-#import "EXTSafeCategory.h"
-#import "NSClipView+TUIExtensions.h"
-#import <objc/runtime.h>
-
-@safecategory (NSScrollView, TUIExtensions)
-
-#pragma mark Category initialization
-
-+ (void)load {
- class_addProtocol([NSScrollView class], @protocol(TUIBridgedScrollView));
-}
-
-#pragma mark TUIBridgedScrollView
-
-- (void)scrollToPoint:(CGPoint)point; {
- [self.contentView scrollToPoint:point];
-}
-
-- (void)scrollToIncludeRect:(CGRect)rect; {
- [self.contentView scrollToIncludeRect:rect];
-}
-
-@end

0 comments on commit 6e88621

Please sign in to comment.