tdf#156230 one more unused piece
Change-Id: I903c55b1f4718c99269460a940be86cad95d11ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155082
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/vcl/inc/ppdparser.hxx b/vcl/inc/ppdparser.hxx
index 6d2f8c0..cbc1b94 100644
--- a/vcl/inc/ppdparser.hxx
+++ b/vcl/inc/ppdparser.hxx
@@ -76,13 +76,10 @@ class PPDKey
bool m_bQueryValue;
OUString m_aGroup;
public:
enum class SetupType { ExitServer, Prolog, DocumentSetup, PageSetup, JCLSetup, AnySetup };
private:
bool m_bUIOption;
int m_nOrderDependency;
SetupType m_eSetupType;
void eraseValue( const OUString& rOption );
public:
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 6ec967c..58b2c375 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -1273,7 +1273,6 @@ void PPDParser::parseOrderDependency(const OString& rLine)
aLine = aLine.copy( nPos+1 );
sal_Int32 nOrder = GetCommandLineToken( 0, aLine ).toInt32();
OString aSetup = GetCommandLineToken( 1, aLine );
OUString aKey(OStringToOUString(GetCommandLineToken(2, aLine), RTL_TEXTENCODING_MS_1252));
if( aKey[ 0 ] != '*' )
return; // invalid order dependency
@@ -1290,18 +1289,6 @@ void PPDParser::parseOrderDependency(const OString& rLine)
pKey = keyit->second.get();
pKey->m_nOrderDependency = nOrder;
if( aSetup == "ExitServer" )
pKey->m_eSetupType = PPDKey::SetupType::ExitServer;
else if( aSetup == "Prolog" )
pKey->m_eSetupType = PPDKey::SetupType::Prolog;
else if( aSetup == "DocumentSetup" )
pKey->m_eSetupType = PPDKey::SetupType::DocumentSetup;
else if( aSetup == "PageSetup" )
pKey->m_eSetupType = PPDKey::SetupType::PageSetup;
else if( aSetup == "JCLSetup" )
pKey->m_eSetupType = PPDKey::SetupType::JCLSetup;
else
pKey->m_eSetupType = PPDKey::SetupType::AnySetup;
}
void PPDParser::parseConstraint( const OString& rLine )
@@ -1546,8 +1533,7 @@ PPDKey::PPDKey( OUString aKey ) :
m_pDefaultValue( nullptr ),
m_bQueryValue( false ),
m_bUIOption( false ),
m_nOrderDependency( 100 ),
m_eSetupType( SetupType::AnySetup )
m_nOrderDependency( 100 )
{
}