From: Steve Lamerton Date: Fri, 5 Aug 2011 13:25:30 +0000 (+0000) Subject: Remove now unused GetSelection from the OSX WebKit backend. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2f70baea2fa2aa1fbcdceb0121eea1cb5c9bedf0 Remove now unused GetSelection from the OSX WebKit backend. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h index 047f6c7eb8..2e5a75b45e 100644 --- a/include/wx/osx/webview_webkit.h +++ b/include/wx/osx/webview_webkit.h @@ -128,8 +128,6 @@ public: void SetScrollPos(int pos); int GetScrollPos(); - wxString GetSelection(); - bool CanIncreaseTextSize(); void IncreaseTextSize(); bool CanDecreaseTextSize(); diff --git a/src/osx/webview_webkit.mm b/src/osx/webview_webkit.mm index 763c9097ca..37b6eb9cbb 100644 --- a/src/osx/webview_webkit.mm +++ b/src/osx/webview_webkit.mm @@ -568,15 +568,6 @@ wxString wxWebViewWebKit::GetPageSource() return wxEmptyString; } -wxString wxWebViewWebKit::GetSelection() -{ - if ( !m_webView ) - return wxEmptyString; - - NSString* selectedText = [[m_webView selectedDOMRange] toString]; - return wxStringWithNSString( selectedText ); -} - bool wxWebViewWebKit::CanIncreaseTextSize() { if ( !m_webView )