From 169a8308313926e711c45be430b4f2d2575fa4d6 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 29 Feb 2016 15:45:40 +0100 Subject: [PATCH] removed unused callback code for scrolling --- MacPass/MPOutlineView.m | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/MacPass/MPOutlineView.m b/MacPass/MPOutlineView.m index de0f3667..812c231d 100644 --- a/MacPass/MPOutlineView.m +++ b/MacPass/MPOutlineView.m @@ -17,18 +17,6 @@ @implementation MPOutlineView -- (void)dealloc { - [[NSNotificationCenter defaultCenter] removeObserver:self]; -} - - -- (void)viewDidMoveToSuperview { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - if(self.enclosingScrollView) { - [self _setupNotifications]; - } -} - - (void)mouseDown:(NSEvent *)theEvent { [super mouseDown:theEvent]; if(_didBecomeFirstResponder) { @@ -48,15 +36,4 @@ return [super resignFirstResponder]; } -- (void)_setupNotifications { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - if(self.enclosingScrollView.contentView) { - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didChangeFrame:) name:NSViewBoundsDidChangeNotification object:self.enclosingScrollView.contentView]; - } -} - -- (void)_didChangeFrame:(NSNotification *)notification { - NSLog(@"DidChangeFrame:%@", NSStringFromRect(self.bounds)); -} - @end