diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-16 14:05:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-18 09:17:43 +0200 |
commit | 4c05834a363535804d2cf5892704e19a5bb4f966 (patch) | |
tree | 43226f521a491e833bdd3f18b1655e945018ba64 /rsc/source | |
parent | 60861faa8653afebb504cfbcaeed633d2373a27d (diff) |
loplugin:unusedmethods
Change-Id: I1c50d176e793397a1f9625f797a3750cf191a61c
Reviewed-on: https://gerrit.libreoffice.org/37679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index 8ff1da5acf1e..7eafff1f4398 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -188,38 +188,6 @@ void RscTypCont::ClearSysNames() aSysLst.clear(); } -sal_uInt32 RscTypCont::PutSysName( RESOURCE_TYPE nRscTyp, char * pFileName ) -{ - RscSysEntry *pFoundEntry = nullptr; - - for (RscSysEntry* pItem: aSysLst) - { - if( !strcmp( pItem->aFileName.getStr(), pFileName ) && - pItem->nRscTyp == nRscTyp && - pItem->nTyp == 0 && - pItem->nRefId == 0) - { - pFoundEntry = pItem; - break; - } - } - RscSysEntry *pSysEntry = pFoundEntry; - - if ( !pSysEntry ) - { - pSysEntry = new RscSysEntry; - pSysEntry->nKey = nUniqueId++; - pSysEntry->nRscTyp = nRscTyp; - pSysEntry->nTyp = 0; - pSysEntry->nRefId = 0; - pSysEntry->aFileName = pFileName; - aSysLst.push_back( pSysEntry ); - } - - return pSysEntry->nKey; -} - - class RscEnumerateObj { friend class RscEnumerateRef; |