From 25a6599a885facfbcb084042f4ac2a9b46794aca Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Feb 2019 20:27:34 +0200 Subject: loplugin:unusedfields in desktop Change-Id: I72df89e96ea31c684a5255e19796191481bc8be5 Reviewed-on: https://gerrit.libreoffice.org/68231 Tested-by: Jenkins Reviewed-by: Noel Grandin --- desktop/source/offacc/acceptor.cxx | 6 ++---- desktop/source/offacc/acceptor.hxx | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'desktop/source/offacc') diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index 13d92c6bd216..d806ea7471e6 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -113,8 +113,7 @@ void Acceptor::run() SAL_INFO( "desktop.offacc", "Acceptor::run connection " << aDescription ); // create instanceprovider for this connection - Reference< XInstanceProvider > rInstanceProvider( - new AccInstanceProvider(m_rContext, rConnection)); + Reference< XInstanceProvider > rInstanceProvider(new AccInstanceProvider(m_rContext)); // create the bridge. The remote end will have a reference to this bridge // thus preventing the bridge from being disposed. When the remote end releases // the bridge, it will be destructed. @@ -217,10 +216,9 @@ Reference< XInterface > Acceptor::impl_getInstance( const Reference< XMultiServi } // InstanceProvider -AccInstanceProvider::AccInstanceProvider(const Reference& rxContext, const Reference& rConnection) +AccInstanceProvider::AccInstanceProvider(const Reference& rxContext) { m_rContext = rxContext; - m_rConnection = rConnection; } AccInstanceProvider::~AccInstanceProvider() diff --git a/desktop/source/offacc/acceptor.hxx b/desktop/source/offacc/acceptor.hxx index bbafc03030f1..67dd66928669 100644 --- a/desktop/source/offacc/acceptor.hxx +++ b/desktop/source/offacc/acceptor.hxx @@ -92,11 +92,9 @@ class AccInstanceProvider : public ::cppu::WeakImplHelper m_rContext; - css::uno::Reference m_rConnection; public: - AccInstanceProvider(const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const css::uno::Reference< css::connection::XConnection >& rConnection); + AccInstanceProvider(const css::uno::Reference< css::uno::XComponentContext >& rxContext); virtual ~AccInstanceProvider() override; // XInstanceProvider -- cgit