From 8d4a306eb04742f499ab693e7f8ebd3ae3c01415 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Nov 2016 11:26:59 +0200 Subject: loplugin:unusedfields Change-Id: I1400ca0af2c357dff06e5f733ec62b13d6a96461 Reviewed-on: https://gerrit.libreoffice.org/30861 Tested-by: Jenkins Reviewed-by: Noel Grandin --- binaryurp/source/bridgefactory.cxx | 10 ++++------ binaryurp/source/bridgefactory.hxx | 6 +----- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'binaryurp') diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx index 3328d35593ef..6e7e756e2a12 100644 --- a/binaryurp/source/bridgefactory.cxx +++ b/binaryurp/source/bridgefactory.cxx @@ -42,9 +42,9 @@ namespace binaryurp { css::uno::Reference< css::uno::XInterface > BridgeFactory::static_create( - css::uno::Reference< css::uno::XComponentContext > const & xContext) + css::uno::Reference< css::uno::XComponentContext > const & /*xContext*/) { - return static_cast< cppu::OWeakObject * >(new BridgeFactory(xContext)); + return static_cast< cppu::OWeakObject * >(new BridgeFactory); } OUString BridgeFactory::static_getImplementationName() { @@ -76,11 +76,9 @@ void BridgeFactory::removeBridge( } } -BridgeFactory::BridgeFactory( - css::uno::Reference< css::uno::XComponentContext > const & context): - BridgeFactoryBase(m_aMutex), context_(context) +BridgeFactory::BridgeFactory(): + BridgeFactoryBase(m_aMutex) { - assert(context.is()); } BridgeFactory::~BridgeFactory() {} diff --git a/binaryurp/source/bridgefactory.hxx b/binaryurp/source/bridgefactory.hxx index f1cc4bb88460..05e39b3dcfec 100644 --- a/binaryurp/source/bridgefactory.hxx +++ b/binaryurp/source/bridgefactory.hxx @@ -78,9 +78,7 @@ private: BridgeFactory(const BridgeFactory&) = delete; BridgeFactory& operator=(const BridgeFactory&) = delete; - explicit BridgeFactory( - com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > - const & context); + BridgeFactory(); virtual ~BridgeFactory() override; @@ -129,8 +127,6 @@ private: com::sun::star::uno::Reference< com::sun::star::bridge::XBridge > > BridgeMap; - com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > - context_; BridgeList unnamed_; BridgeMap named_; }; -- cgit