Remove unused GetTextExtent() call from wxProgressDialog.

This seems to be a left-over from the old, manual positioning code. As we use
sizers now, it's not needed any more.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-06-02 11:58:16 +00:00
parent 20ba398d1a
commit 80d7019761

View File

@@ -139,11 +139,6 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
m_parentTop = wxGetTopLevelParent(parent);
wxClientDC dc(this);
dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
wxCoord widthText = 0;
dc.GetTextExtent(message, &widthText, NULL, NULL, NULL, NULL);
// top-level sizerTop
wxSizer * const sizerTop = new wxBoxSizer(wxVERTICAL);