summaryrefslogtreecommitdiff
path: root/framework/source/accelerators
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 09:19:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 16:52:20 +0200
commit096168cacc574a71482520e5c3fbd79f975dc6ad (patch)
treef101b976c39e2d4fc7f456510efdce7c4f5c6056 /framework/source/accelerators
parente8493f9349d18cbcb323930a9bf200c542a72d62 (diff)
loplugin:writeonlyvars
Change-Id: I00b495685cc9f74440051eafa2f8681a050a536e Reviewed-on: https://gerrit.libreoffice.org/76497 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/accelerators')
-rw-r--r--framework/source/accelerators/presethandler.cxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx
index c40c22cbc5bd..b8b637c5455e 100644
--- a/framework/source/accelerators/presethandler.cxx
+++ b/framework/source/accelerators/presethandler.cxx
@@ -436,48 +436,6 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType
sRelPathUser = sLocalizedUserPath;
}
- // read content of level 3 (presets, targets)
- css::uno::Sequence< OUString > lNames;
- const OUString* pNames;
- sal_Int32 c;
- sal_Int32 i;
- std::vector<OUString> lPresets;
- std::vector<OUString> lTargets;
-
- // read preset names of share layer
- if (xShare.is())
- {
- lNames = xShare->getElementNames();
- pNames = lNames.getConstArray();
- c = lNames.getLength();
-
- for (i=0; i<c; ++i)
- {
- OUString sTemp = pNames[i];
- sal_Int32 nPos = sTemp.indexOf(".xml");
- if (nPos > -1)
- sTemp = sTemp.copy(0,nPos);
- lPresets.push_back(sTemp);
- }
- }
-
- // read preset names of user layer
- if (xUser.is())
- {
- lNames = xUser->getElementNames();
- pNames = lNames.getConstArray();
- c = lNames.getLength();
-
- for (i=0; i<c; ++i)
- {
- OUString sTemp = pNames[i];
- sal_Int32 nPos = sTemp.indexOf(".xml");
- if (nPos > -1)
- sTemp = sTemp.copy(0,nPos);
- lTargets.push_back(sTemp);
- }
- }
-
{
SolarMutexGuard g;
m_xWorkingStorageShare = xShare;