diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-06-17 15:44:37 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-06-17 15:44:37 +1000 |
commit | 9e7d406d43781859d05782ebb78c352b1489bb71 (patch) | |
tree | ae12a25a8e6e530ad670f82cd3b045b6ecaa753d | |
parent | e99dbc258de8372651de3c8e009a65f35249f679 (diff) | |
download | scintilla-mirror-9e7d406d43781859d05782ebb78c352b1489bb71.tar.gz |
Remove unused TopContainer method. Use less specific types when possible.
-rw-r--r-- | cocoa/ScintillaCocoa.h | 1 | ||||
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 15 |
2 files changed, 2 insertions, 14 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 8fa2d196b..05ee56c7c 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -133,7 +133,6 @@ public: void RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc callback); sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); - ScintillaView* TopContainer(); NSScrollView* ScrollContainer(); SCIContentView* ContentView(); diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 9f6e36317..b4c16dce4 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -656,17 +656,6 @@ void ScintillaCocoa::CancelModes() { //-------------------------------------------------------------------------------------------------- /** - * Helper function to get the outer container which represents the Scintilla editor on application side. - */ -ScintillaView* ScintillaCocoa::TopContainer() -{ - NSView* container = static_cast<NSView*>(wMain.GetID()); - return static_cast<ScintillaView*>([[[container superview] superview] superview]); -} - -//-------------------------------------------------------------------------------------------------- - -/** * Helper function to get the scrolling view. */ NSScrollView* ScintillaCocoa::ScrollContainer() { @@ -718,7 +707,7 @@ PRectangle ScintillaCocoa::GetClientRectangle() */ PRectangle ScintillaCocoa::GetClientDrawingRectangle() { #if MAC_OS_X_VERSION_MAX_ALLOWED > 1080 - SCIContentView *content = ContentView(); + NSView *content = ContentView(); if ([content respondsToSelector: @selector(setPreparedContentRect:)]) { NSRect rcPrepared = [content preparedContentRect]; if (!NSIsEmptyRect(rcPrepared)) @@ -760,7 +749,7 @@ void ScintillaCocoa::DiscardOverdraw() { #if MAC_OS_X_VERSION_MAX_ALLOWED > 1080 // If running on 10.9, reset prepared area to visible area - SCIContentView *content = ContentView(); + NSView *content = ContentView(); if ([content respondsToSelector: @selector(setPreparedContentRect:)]) { content.preparedContentRect = [content visibleRect]; } |