From 38023af6c13602ae1856bea11693c18c0c3efa36 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Jul 2015 09:49:57 +0200 Subject: loplugin:unusedmethods Change-Id: If5090c330e12d6e537766bf4a9be0a2360381a7a Reviewed-on: https://gerrit.libreoffice.org/17312 Tested-by: Jenkins Reviewed-by: Noel Grandin --- configmgr/source/nodemap.hxx | 1 - configmgr/source/writemodfile.cxx | 2 ++ configmgr/source/writemodfile.hxx | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'configmgr/source') 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 &operator[](const OUString &aStr) { clearCache(); return maImpl[aStr]; } std::pair 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: -- cgit