]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/msgdlgg.cpp
compilation fixes for !wxUSE_POSTSCRIPT
[wxWidgets.git] / src / generic / msgdlgg.cpp
index 012e68df9ebd0eaec3550178a18a6f7888e7cee6..498dccc0b64b27ec89253decae0dc3d803766192 100644 (file)
@@ -179,28 +179,3 @@ void wxGenericMessageDialog::OnCancel(wxCommandEvent& WXUNUSED(event))
 }
 
 
-int wxMessageBox(const wxString& message, const wxString& caption, long style,
-                 wxWindow *parent, int WXUNUSED(x), int WXUNUSED(y) )
-{
-    wxMessageDialog dialog(parent, message, caption, style);
-
-    int ans = dialog.ShowModal();
-    switch ( ans )
-    {
-        case wxID_OK:
-            return wxOK;
-            break;
-        case wxID_YES:
-            return wxYES;
-            break;
-        case wxID_NO:
-            return wxNO;
-            break;
-        default:
-        case wxID_CANCEL:
-            return wxCANCEL;
-            break;
-    }
-    return ans;
-}
-