Remove redundant check for m_webView in wxOSX code

wxCHECK_MSG() is enough, there is really no need to check for the same
condition twice, this is just confusing.
This commit is contained in:
Vadim Zeitlin 2017-10-21 23:35:57 +02:00
parent 74e60b39f8
commit 9884b0b4ea

View File

@ -411,12 +411,8 @@ wxString wxWebViewWebKit::GetSelectedText() const
bool wxWebViewWebKit::RunScript(const wxString& javascript, wxString* output)
{
if ( !m_webView )
{
wxCHECK_MSG( m_webView, false,
wxS("wxWebView must be created before running JS scripts") );
return false;
}
wxS("wxWebView must be created before calling RunScript()") );
wxJSScriptWrapper wrapJS(javascript, &m_runScriptCount);