diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-03 14:00:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-04 07:13:58 +0000 |
commit | 7abd369964a0c7f9f80cdbc9e47c7dc120fe8257 (patch) | |
tree | 70786d0850de5212e30e5611c09cba06a2d26ac9 /rsc | |
parent | fb823544468150a2ef660095a511636be1bf6f9e (diff) |
loplugin:unusedmethods
Change-Id: Ie1f840c3ec9a2d5888f95cf05e531a8a9464bf2e
Reviewed-on: https://gerrit.libreoffice.org/30524
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rscclass.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rscdb.hxx | 6 | ||||
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 38 | ||||
-rw-r--r-- | rsc/source/res/rscclass.cxx | 24 |
4 files changed, 0 insertions, 70 deletions
diff --git a/rsc/inc/rscclass.hxx b/rsc/inc/rscclass.hxx index c38dfd646719..bc9b31237d7f 100644 --- a/rsc/inc/rscclass.hxx +++ b/rsc/inc/rscclass.hxx @@ -53,8 +53,6 @@ protected: bool IsValueDflt( CLASS_DATA pData, sal_uInt32 nEle ); void SetVarDflt( CLASS_DATA pData, sal_uInt32 nEle, bool bSet ); - sal_Int32 GetCorrectValues( const RSCINST & rInst, sal_uInt32 nVarPos, - sal_uInt32 nTupelIdx, RscTypCont * pTC ); public: RscClass( Atom nId, sal_uInt32 nTypId, RscTop * pSuperCl ); virtual ~RscClass() override; diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx index e452f4d9ee48..a60447fe2757 100644 --- a/rsc/inc/rscdb.hxx +++ b/rsc/inc/rscdb.hxx @@ -149,14 +149,8 @@ public: } const OString& GetSearchPath() const { return aSearchPath; } void SetSysSearchPath( const OString& rStr ) { aSysSearchPath = rStr; } - void InsertType( RscTop * pType ) - { - aBaseLst.push_back( pType ); - } - RscTop * SearchType( Atom nTypId ); // deletes all resource objects of this file void Delete( RscFileTab::Index lFileKey ); - RscTop * GetRoot() { return pRoot; } sal_uInt32 PutSysName( sal_uInt32 nRscTyp, char * pName ); void ClearSysNames(); ERRTYPE WriteRc( WriteRcContext& rContext ); diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index cd43e212b75b..6f53e10c4f0d 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -208,44 +208,6 @@ void RscTypCont::ClearSysNames() aSysLst.clear(); } -RscTop * RscTypCont::SearchType( Atom nId ) -{ - /* [Description] - - Search for base type nId; - */ - if( nId == InvalidAtom ) - return nullptr; - -#define ELSE_IF( a ) \ - else if( a.GetId() == nId ) \ - return &a; \ - - if( aBool.GetId() == nId ) - return &aBool; - ELSE_IF( aShort ) - ELSE_IF( aUShort ) - ELSE_IF( aLong ) - ELSE_IF( aEnumLong ) - ELSE_IF( aIdUShort ) - ELSE_IF( aIdNoZeroUShort ) - ELSE_IF( aNoZeroShort ) - ELSE_IF( aIdLong ) - ELSE_IF( aString ) - ELSE_IF( aLangType ) - ELSE_IF( aLangString ) - ELSE_IF( aLangShort ) -// al least to not pollute -#undef ELSE_IF - - for (RscTop* pItem : aBaseLst) - { - if (pItem->GetId() == nId) - return pItem; - } - return nullptr; -} - sal_uInt32 RscTypCont::PutSysName( sal_uInt32 nRscTyp, char * pFileName ) { RscSysEntry *pFoundEntry = nullptr; diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx index 3b3d36bd6960..3e6e802b7ae6 100644 --- a/rsc/source/res/rscclass.cxx +++ b/rsc/source/res/rscclass.cxx @@ -592,30 +592,6 @@ void RscClass::WriteSrc( const RSCINST & rInst, return; } -sal_Int32 RscClass::GetCorrectValues( const RSCINST & rInst, - sal_uInt32 nVarPos, - sal_uInt32 nTupelIdx, - RscTypCont * pTC) -{ - sal_Int32 nLang = 0; - sal_Int32 nBaseValue; - - // retrieve base value - RSCINST aTmpI = GetInstData( rInst.pData, nVarPos, true ); - aTmpI.pClass->GetNumber( aTmpI, &nBaseValue ); - - // retrieve language delta - aTmpI = rInst.pClass->GetVariable( rInst, nRsc_DELTALANG, RSCINST() ); - if( aTmpI.IsInst() ) - { - RscWriteRc aMem; - aTmpI.pClass->WriteRc( aTmpI, aMem, pTC, 0, false ); - nLang = (sal_Int32)aMem.GetShort( nTupelIdx * sizeof(sal_uInt16) ); - } - - return nLang + nBaseValue; -} - ERRTYPE RscClass::WriteInstRc( const RSCINST & rInst, RscWriteRc & rMem, RscTypCont * pTC, |