diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index b7f25530c6..dfdf2c6e3f 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1385,15 +1385,8 @@ void wxTextCtrl::DoSetSelection(long from, long to, int flags) bool wxTextCtrl::DoLoadFile(const wxString& file, int fileType) { - if ( wxTextCtrlBase::DoLoadFile(file, fileType) ) - { - // update the size limit if needed - AdjustSpaceLimit(); - - return true; - } - - return false; + // This method is kept for ABI compatibility only. + return wxTextCtrlBase::DoLoadFile(file, fileType); } // ----------------------------------------------------------------------------