]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove wxLogWindow::OnFrameCreate() virtual method.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:07:56 +0000 (15:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:07:56 +0000 (15:07 +0000)
This method couldn't be overridden by the classes deriving from wxLogWindow
because it was called (indirectly) from wxLogWindow ctor itself and so was
completely useless. Just remove it to avoid confusion.

Closes #12763.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/generic/logg.h
interface/wx/log.h
src/generic/logg.cpp

index 74939c4f0e1b355e18e353f7f8495515d850a57d..70ec5413a2c228527e97f95d87e90c6aea38c7e3 100644 (file)
@@ -622,6 +622,7 @@ All (GUI):
 - Add wxCheckListBox::GetCheckedItems() (hartwigw).
 - Add wxAUI_TB_PLAIN_BACKGROUND wxAuiToolBar style (Allann Jones).
 - Make wxGenericDataViewCtrl::SetFont() really work (Laurent Poujoulat).
+- Remove wxLogWindow::OnFrameCreate(), it was never called anyhow.
 
 wxGTK:
 
index 4cff569de048cd15b30a642a328fa217b11dd4bb..b7409d4610c87f0106b68a9fe95f44cc1764a631 100644 (file)
@@ -127,9 +127,6 @@ public:
     wxFrame *GetFrame() const;
 
     // overridables
-        // called immediately after the log frame creation allowing for
-        // any extra initializations
-    virtual void OnFrameCreate(wxFrame *frame);
         // called if the user closes the window interactively, will not be
         // called if it is destroyed for another reason (such as when program
         // exits) - return true from here to allow the frame to close, false
index 998f0159590acb5c810df9d6aa46163ab92a7c5b..22406b53ba55d19090e81c3e6bc0f9296dfcae5f 100644 (file)
@@ -949,12 +949,6 @@ public:
     */
     virtual bool OnFrameClose(wxFrame* frame);
 
-    /**
-        Called immediately after the log frame creation allowing for
-        any extra initializations.
-    */
-    virtual void OnFrameCreate(wxFrame* frame);
-
     /**
         Called right before the log frame is going to be deleted: will
         always be called unlike OnFrameClose().
index a56044a05f5d725323ab2ffa307d0ea06479e347..43d86303054758369fa0c9dc145533748cb39872 100644 (file)
@@ -529,8 +529,6 @@ wxLogFrame::wxLogFrame(wxWindow *pParent, wxLogWindow *log, const wxString& szTi
     // status bar for menu prompts
     CreateStatusBar();
 #endif // wxUSE_STATUSBAR
-
-    m_log->OnFrameCreate(this);
 }
 
 void wxLogFrame::DoClose()
@@ -644,10 +642,6 @@ wxFrame *wxLogWindow::GetFrame() const
     return m_pLogFrame;
 }
 
-void wxLogWindow::OnFrameCreate(wxFrame * WXUNUSED(frame))
-{
-}
-
 bool wxLogWindow::OnFrameClose(wxFrame * WXUNUSED(frame))
 {
     // allow to close