diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-18 09:37:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-21 10:20:31 +0200 |
commit | e18b08363a939b35e7f5dc435e606d2c62bddebd (patch) | |
tree | 6318e03a67fd2dfbbd29b88b3de36ad7e9fd6292 /registry | |
parent | 20ff8cc5c3534d149b18b9776ab964324e70fdfd (diff) |
loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/regimpl.cxx | 48 | ||||
-rw-r--r-- | registry/source/regimpl.hxx | 5 |
2 files changed, 0 insertions, 53 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 6e262b2eb22f..4ac560fa835b 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -946,54 +946,6 @@ RegError ORegistry::loadKey(RegKeyHandle hKey, const OUString& regFileName, -// saveKey - -RegError ORegistry::saveKey(RegKeyHandle hKey, const OUString& regFileName, - bool bWarnings, bool bReport) -{ - ORegKey* pKey = static_cast< ORegKey* >(hKey); - - std::unique_ptr< ORegistry > pReg (new ORegistry()); - RegError _ret = pReg->initRegistry(regFileName, RegAccessMode::READWRITE, true/*bCreate*/); - if (_ret != RegError::NO_ERROR) - return _ret; - ORegKey* pRootKey = pReg->getRootKey(); - - REG_GUARD(m_mutex); - - OStoreDirectory::iterator iter; - OStoreDirectory rStoreDir(pKey->getStoreDir()); - storeError _err = rStoreDir.first(iter); - - while ( _err == store_E_None ) - { - OUString const keyName = iter.m_pszName; - - if ( iter.m_nAttrib & STORE_ATTRIB_ISDIR ) - { - _ret = loadAndSaveKeys(pRootKey, pKey, keyName, - pKey->getName().getLength(), - bWarnings, bReport); - } - else - { - _ret = loadAndSaveValue(pRootKey, pKey, keyName, - pKey->getName().getLength(), - bWarnings, bReport); - } - - if (_ret != RegError::NO_ERROR) - break; - - _err = rStoreDir.next(iter); - } - - (void) pReg->releaseKey(pRootKey); - return _ret; -} - - - // loadAndSaveValue() RegError ORegistry::loadAndSaveValue(ORegKey* pTargetKey, diff --git a/registry/source/regimpl.hxx b/registry/source/regimpl.hxx index eb1d8e099aff..cea37bf9b983 100644 --- a/registry/source/regimpl.hxx +++ b/registry/source/regimpl.hxx @@ -80,11 +80,6 @@ public: bool bWarings=false, bool bReport=false); - RegError saveKey(RegKeyHandle hKey, - const OUString& regFileName, - bool bWarings=false, - bool bReport=false); - RegError dumpRegistry(RegKeyHandle hKey) const; ~ORegistry(); |