aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-06-17 15:44:37 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2014-06-17 15:44:37 +1000
commit9e7d406d43781859d05782ebb78c352b1489bb71 (patch)
treeae12a25a8e6e530ad670f82cd3b045b6ecaa753d /cocoa/ScintillaCocoa.mm
parente99dbc258de8372651de3c8e009a65f35249f679 (diff)
downloadscintilla-mirror-9e7d406d43781859d05782ebb78c352b1489bb71.tar.gz
Remove unused TopContainer method. Use less specific types when possible.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r--cocoa/ScintillaCocoa.mm15
1 files changed, 2 insertions, 13 deletions
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];
}