summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-22 12:30:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 09:00:18 +0200
commit222bc56e21356520a55a871c9cdfc26d2fc3fcb2 (patch)
tree8b68267dcac953d1b519c1fcb21441df2733da1b /desktop
parent6bbda13286c8f736f35ceb7a377ca15b3fd544b2 (diff)
loplugin:unusedfields in desktop..editeng
Change-Id: Ieea12d0790a1034eba8975fe74fa205f02003b7d Reviewed-on: https://gerrit.libreoffice.org/39134 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/registry/dp_backend.cxx5
-rw-r--r--desktop/source/deployment/registry/inc/dp_backend.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index 1e7de838735e..9078d61b8f79 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -79,8 +79,7 @@ PackageRegistryBackend::PackageRegistryBackend(
Reference<XComponentContext> const & xContext )
: t_BackendBase( getMutex() ),
m_xComponentContext( xContext ),
- m_eContext( Context::Unknown ),
- m_readOnly( false )
+ m_eContext( Context::Unknown )
{
assert(xContext.is());
boost::optional<OUString> cachePath;
@@ -88,8 +87,6 @@ PackageRegistryBackend::PackageRegistryBackend(
comphelper::unwrapArgs( args, m_context, cachePath, readOnly );
if (cachePath)
m_cachePath = *cachePath;
- if (readOnly)
- m_readOnly = *readOnly;
if ( m_context == "user" )
m_eContext = Context::User;
diff --git a/desktop/source/deployment/registry/inc/dp_backend.h b/desktop/source/deployment/registry/inc/dp_backend.h
index 2fc4c81a52a7..33ea1e5a7a37 100644
--- a/desktop/source/deployment/registry/inc/dp_backend.h
+++ b/desktop/source/deployment/registry/inc/dp_backend.h
@@ -220,7 +220,6 @@ protected:
enum class Context {
Unknown, User, Shared, Bundled, Tmp, Document
} m_eContext;
- bool m_readOnly;
struct StrCannotDetectMediaType : public ::dp_misc::StaticResourceString<
StrCannotDetectMediaType, RID_STR_CANNOT_DETECT_MEDIA_TYPE> {};