diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 3bba53d93c..bb66e50ce1 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -131,7 +131,6 @@ protected: void DoGetSizeMM(int *width, int *height) const; FILE* m_pstream; // PostScript output stream - wxString m_title; unsigned char m_currentRed; unsigned char m_currentGreen; unsigned char m_currentBlue; diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index d35e0ab584..119340cad2 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -1700,7 +1700,7 @@ wxSize wxPostScriptDCImpl::GetPPI(void) const } -bool wxPostScriptDCImpl::StartDoc( const wxString& message ) +bool wxPostScriptDCImpl::StartDoc( const wxString& WXUNUSED(message) ) { wxCHECK_MSG( m_ok, false, wxT("invalid postscript dc") ); @@ -1723,14 +1723,11 @@ bool wxPostScriptDCImpl::StartDoc( const wxString& message ) } m_ok = true; - m_title = message; wxString buffer; PsPrint( "%!PS-Adobe-2.0\n" ); - buffer.Printf( "%%%%Title: %s\n", m_title ); - PsPrint( buffer ); PsPrint( "%%Creator: wxWidgets PostScript renderer\n" ); buffer.Printf( "%%%%CreationDate: %s\n", wxNow() );