From 94173e3faeda5bd908eb0e417848d9a83b5ac06b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Aug 2021 01:32:29 +0200 Subject: [PATCH] Remove stub spell checking functions from wxiOS wxTextCtrl There doesn't seem to be any need to have these functions here as the base class implementation already does exactly the same thing (i.e. nothing at all). --- include/wx/osx/iphone/private/textimpl.h | 5 ----- src/osx/iphone/textctrl.mm | 13 ------------- 2 files changed, 18 deletions(-) diff --git a/include/wx/osx/iphone/private/textimpl.h b/include/wx/osx/iphone/private/textimpl.h index 1a2876e4fe..bdaa6c0c72 100644 --- a/include/wx/osx/iphone/private/textimpl.h +++ b/include/wx/osx/iphone/private/textimpl.h @@ -71,11 +71,6 @@ public: virtual bool HasOwnContextMenu() const { return true; } -#if wxUSE_SPELLCHECK - virtual void CheckSpelling(const wxTextProofOptions& options); - virtual bool IsSpellingCheckEnabled() const; -#endif // wxUSE_SPELLCHECK - virtual wxSize GetBestSize() const; protected: diff --git a/src/osx/iphone/textctrl.mm b/src/osx/iphone/textctrl.mm index 889cf3c676..147f8cb1d3 100644 --- a/src/osx/iphone/textctrl.mm +++ b/src/osx/iphone/textctrl.mm @@ -500,19 +500,6 @@ void wxUITextViewControl::SetStyle(long start, } } -#if wxUSE_SPELLCHECK - -void wxUITextViewControl::CheckSpelling(const wxTextProofOptions& WXUNUSED(options)) -{ -} - -bool wxUITextViewControl::IsSpellingCheckEnabled() const -{ - return false; -} - -#endif // wxUSE_SPELLCHECK - wxSize wxUITextViewControl::GetBestSize() const { wxRect r;