diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-18 15:22:39 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 06:42:05 +0000 |
commit | 727d4dbebaf947593ce5caae6915238c8c4f3da2 (patch) | |
tree | 65aba50668cc9a4a46750e63323bfa26f5f482f3 /rsc/source | |
parent | 808c2b9ff52bea3c1e0580e7ac2aa75406d6e2d1 (diff) |
loplugin:unusedmethods in package to rsc
Change-Id: I61c6f56a69891d656a41d3617d0ce2b34d848c84
Reviewed-on: https://gerrit.libreoffice.org/25108
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 41 | ||||
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 12 |
2 files changed, 0 insertions, 53 deletions
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index 877e22605b63..1d695fb7f54b 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -287,47 +287,6 @@ sal_uInt32 RscTypCont::PutSysName( sal_uInt32 nRscTyp, char * pFileName ) return pSysEntry->nKey; } -void RscTypCont::WriteInc( FILE * fOutput, RscFileTab::Index lFileKey ) -{ - - if( lFileKey == RscFileTab::IndexNotFound ) - { - RscFileTab::Index aIndex = aFileTab.FirstIndex(); - while( aIndex != RscFileTab::IndexNotFound ) - { - RscFile * pFName = aFileTab.Get( aIndex ); - if( pFName->IsIncFile() ) - { - fprintf( fOutput, "#include " ); - fprintf( fOutput, "\"%s\"\n", - pFName->aFileName.getStr() ); - } - aIndex = aFileTab.NextIndex( aIndex ); - } - } - else - { - RscFile * pFName = aFileTab.Get( lFileKey ); - if( pFName ) - { - for ( size_t i = 0, n = pFName->aDepLst.size(); i < n; ++i ) - { - RscDepend* pDep = pFName->aDepLst[ i ]; - if( pDep->GetFileKey() != lFileKey ) - { - RscFile* pFile = aFileTab.GetFile( pDep->GetFileKey() ); - if( pFile ) - { - fprintf( fOutput, "#include " ); - fprintf( fOutput, "\"%s\"\n", - pFile->aFileName.getStr() ); - } - } - } - } - } -} - class RscEnumerateObj { diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index b632009afadb..820c3f0688f9 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -231,18 +231,6 @@ bool RscDefineList::Remove() return true; } -void RscDefineList::WriteAll( FILE * fOutput ) -{ - for ( size_t i = 0, n = maList.size(); i < n; ++i ) - { - RscDefine* pDefEle = maList[ i ]; - fprintf( fOutput, "#define %s %s\n", - pDefEle->GetName().getStr(), - pDefEle->GetMacro().getStr() - ); - } -} - bool RscExpType::Evaluate( sal_Int32 * plValue ) const { if( IsDefinition() ) |