From: Paul Cornett Date: Mon, 19 Aug 2013 05:42:21 +0000 (+0000) Subject: Remove some old redundant code X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e62b7692622880d48b62f555c1e356883232956c?hp=71a09c3579dd5cb4cd8fa7fdc143561cbff74e12 Remove some old redundant code Default size stuff is done by PreCreation() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index eec3845ec1..414ecd652f 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -545,16 +545,10 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, - const wxSize& sizeOrig, + const wxSize& size, long style, const wxString &name ) { - // always create a frame of some reasonable, even if arbitrary, size (at - // least for MSW compatibility) - wxSize size = sizeOrig; - size.x = WidthDefault(size.x); - size.y = HeightDefault(size.y); - wxTopLevelWindows.Append( this ); if (!PreCreation( parent, pos, size ) ||