From 222bc56e21356520a55a871c9cdfc26d2fc3fcb2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Jun 2017 12:30:23 +0200 Subject: loplugin:unusedfields in desktop..editeng Change-Id: Ieea12d0790a1034eba8975fe74fa205f02003b7d Reviewed-on: https://gerrit.libreoffice.org/39134 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- desktop/source/deployment/registry/dp_backend.cxx | 5 +---- desktop/source/deployment/registry/inc/dp_backend.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'desktop/source') 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 const & xContext ) : t_BackendBase( getMutex() ), m_xComponentContext( xContext ), - m_eContext( Context::Unknown ), - m_readOnly( false ) + m_eContext( Context::Unknown ) { assert(xContext.is()); boost::optional 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> {}; -- cgit