summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-23 09:49:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-24 10:36:20 +0000
commit38023af6c13602ae1856bea11693c18c0c3efa36 (patch)
treec17ef3941354f732e2fdd7c3cedb7c649f99e965 /configmgr
parent2c6ad5343de947f1646536c539b116346adb8fdc (diff)
loplugin:unusedmethods
Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/nodemap.hxx1
-rw-r--r--configmgr/source/writemodfile.cxx2
-rw-r--r--configmgr/source/writemodfile.hxx2
3 files changed, 4 insertions, 1 deletions
diff --git a/configmgr/source/nodemap.hxx b/configmgr/source/nodemap.hxx
index a000b30aef96..77c9dd050db4 100644
--- a/configmgr/source/nodemap.hxx
+++ b/configmgr/source/nodemap.hxx
@@ -54,7 +54,6 @@ class NodeMap
rtl::Reference<Node> &operator[](const OUString &aStr) { clearCache(); return maImpl[aStr]; }
std::pair<iterator,bool> insert(const value_type &vt) { clearCache(); return maImpl.insert(vt); }
- void clear() { maImpl.clear(); clearCache(); }
void erase(const iterator &it) { maImpl.erase(it); clearCache(); }
void erase(const OUString &aStr) { maImpl.erase(aStr); clearCache(); }
diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index dc247e2dbf8b..3d8cc8b96ddb 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -93,6 +93,7 @@ TempFile::~TempFile() {
}
}
+#ifdef WNT
oslFileError TempFile::closeWithoutUnlink() {
flush();
oslFileError e = osl_closeFile(handle);
@@ -100,6 +101,7 @@ oslFileError TempFile::closeWithoutUnlink() {
closed = true;
return e;
}
+#endif
void TempFile::closeAndRename(const OUString &_url) {
oslFileError e = flush();
diff --git a/configmgr/source/writemodfile.hxx b/configmgr/source/writemodfile.hxx
index ffa5e30ef5de..d53efe9448f2 100644
--- a/configmgr/source/writemodfile.hxx
+++ b/configmgr/source/writemodfile.hxx
@@ -37,7 +37,9 @@ struct TempFile {
~TempFile();
void closeAndRename(const OUString &url);
oslFileError flush();
+#ifdef WNT
oslFileError closeWithoutUnlink();
+#endif
void writeString(char const *begin, sal_Int32 length);
private: