diff --git a/include/wx/motif/window.h b/include/wx/motif/window.h index 9284faf764..93f03ca231 100644 --- a/include/wx/motif/window.h +++ b/include/wx/motif/window.h @@ -175,10 +175,6 @@ protected: // event handlers (not virtual by design) void OnIdle(wxIdleEvent& event); - // Makes an adjustment to the window position (for example, a frame that has - // a toolbar that it manages itself). - virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); - wxWindow *GetChild(int number) const { return GetChildren().Item(number)->GetData(); } diff --git a/include/wx/x11/window.h b/include/wx/x11/window.h index e7ef074f99..90863adfca 100644 --- a/include/wx/x11/window.h +++ b/include/wx/x11/window.h @@ -153,10 +153,6 @@ public: wxWindow *GetFocusWidget(); protected: - // Makes an adjustment to the window position (for example, a frame that has - // a toolbar that it manages itself). - virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); - // Responds to colour changes: passes event on to children. void OnSysColourChanged(wxSysColourChangedEvent& event); diff --git a/src/motif/window.cpp b/src/motif/window.cpp index cbdac0a7ce..e51b353f98 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1366,17 +1366,6 @@ wxPoint wxWindow::GetClientAreaOrigin() const return wxPoint(0, 0); } -// Makes an adjustment to the window position (for example, a frame that has -// a toolbar that it manages itself). -void wxWindow::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) -{ - if (((sizeFlags & wxSIZE_NO_ADJUSTMENTS) == 0) && GetParent()) - { - wxPoint pt(GetParent()->GetClientAreaOrigin()); - x += pt.x; y += pt.y; - } -} - void wxWindow::SetSizeHints(int minW, int minH, int maxW, int maxH, int incW, int incH) { m_minWidth = minW;