summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 07:28:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 10:46:26 +0200
commita63e17c6c4c8fae0ad8edd86a097a244f27f38bd (patch)
tree8b74f0a08eded38897e9e99d469244ff837c951e /ucb
parent756b2431f0006a01affa7c92c2dede2b11166001 (diff)
loplugin:checkunusedparams more part3
Change-Id: I621fcf7ceb27238ca86d2299dfb2b8ed03c270fd Reviewed-on: https://gerrit.libreoffice.org/40509 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/cmdenv.cxx8
-rw-r--r--ucb/source/core/cmdenv.hxx2
-rw-r--r--ucb/source/core/ucbprops.cxx7
-rw-r--r--ucb/source/core/ucbprops.hxx2
-rw-r--r--ucb/source/ucp/ext/ucpext_content.cxx4
-rw-r--r--ucb/source/ucp/ext/ucpext_content.hxx3
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx5
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.hxx4
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx5
-rw-r--r--ucb/source/ucp/gio/gio_content.hxx3
10 files changed, 17 insertions, 26 deletions
diff --git a/ucb/source/core/cmdenv.cxx b/ucb/source/core/cmdenv.cxx
index a8c1b862fd6d..01c228381295 100644
--- a/ucb/source/core/cmdenv.cxx
+++ b/ucb/source/core/cmdenv.cxx
@@ -36,9 +36,7 @@ using namespace ucb_cmdenv;
// UcbCommandEnvironment Implementation.
-UcbCommandEnvironment::UcbCommandEnvironment(
- const uno::Reference< lang::XMultiServiceFactory >& /*xSMgr*/ )
-//: m_xSMgr( xSMgr )
+UcbCommandEnvironment::UcbCommandEnvironment()
{
}
@@ -129,10 +127,10 @@ UcbCommandEnvironment::getProgressHandler()
/// @throws uno::Exception
static uno::Reference< uno::XInterface > SAL_CALL
UcbCommandEnvironment_CreateInstance(
- const uno::Reference< lang::XMultiServiceFactory> & rSMgr )
+ const uno::Reference< lang::XMultiServiceFactory> & /*rSMgr*/ )
{
lang::XServiceInfo * pX = static_cast< lang::XServiceInfo * >(
- new UcbCommandEnvironment( rSMgr ) );
+ new UcbCommandEnvironment );
return uno::Reference< uno::XInterface >::query( pX );
}
diff --git a/ucb/source/core/cmdenv.hxx b/ucb/source/core/cmdenv.hxx
index 68dd3e4708a8..20a97d78a20d 100644
--- a/ucb/source/core/cmdenv.hxx
+++ b/ucb/source/core/cmdenv.hxx
@@ -38,7 +38,7 @@ class UcbCommandEnvironment :
css::uno::Reference< css::ucb::XProgressHandler > m_xPH;
public:
- explicit UcbCommandEnvironment( const css::uno::Reference< css::lang::XMultiServiceFactory >& rXSMgr );
+ explicit UcbCommandEnvironment();
virtual ~UcbCommandEnvironment() override;
// XInitialization
diff --git a/ucb/source/core/ucbprops.cxx b/ucb/source/core/ucbprops.cxx
index b6cb1d1224c8..91617819a10b 100644
--- a/ucb/source/core/ucbprops.cxx
+++ b/ucb/source/core/ucbprops.cxx
@@ -43,8 +43,7 @@ using namespace com::sun::star::uno;
#define ATTR_DEFAULT ( PropertyAttribute::BOUND | PropertyAttribute::MAYBEVOID | PropertyAttribute::MAYBEDEFAULT )
-UcbPropertiesManager::UcbPropertiesManager(
- const Reference< XMultiServiceFactory >& )
+UcbPropertiesManager::UcbPropertiesManager()
: m_pProps({
{ "Account", -1, cppu::UnoType<OUString>::get(), ATTR_DEFAULT },
{ "AutoUpdateInterval", -1, cppu::UnoType<sal_Int32>::get(), ATTR_DEFAULT },
@@ -199,10 +198,10 @@ XSERVICEINFO_COMMOM_IMPL( UcbPropertiesManager,
OUString( "com.sun.star.comp.ucb.UcbPropertiesManager" ) )
/// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > SAL_CALL
-UcbPropertiesManager_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr )
+UcbPropertiesManager_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & /*rSMgr*/ )
{
css::lang::XServiceInfo* pX =
- static_cast<css::lang::XServiceInfo*>(new UcbPropertiesManager( rSMgr ));
+ static_cast<css::lang::XServiceInfo*>(new UcbPropertiesManager);
return css::uno::Reference< css::uno::XInterface >::query( pX );
}
css::uno::Sequence< OUString >
diff --git a/ucb/source/core/ucbprops.hxx b/ucb/source/core/ucbprops.hxx
index 4f789f999476..03c26f70b410 100644
--- a/ucb/source/core/ucbprops.hxx
+++ b/ucb/source/core/ucbprops.hxx
@@ -46,7 +46,7 @@ private:
css::beans::Property& rProp );
public:
- explicit UcbPropertiesManager( const css::uno::Reference< css::lang::XMultiServiceFactory >& rxSMgr );
+ explicit UcbPropertiesManager();
virtual ~UcbPropertiesManager() override;
// XServiceInfo
diff --git a/ucb/source/ucp/ext/ucpext_content.cxx b/ucb/source/ucp/ext/ucpext_content.cxx
index 266ed9fcc4a5..a581f262a921 100644
--- a/ucb/source/ucp/ext/ucpext_content.cxx
+++ b/ucb/source/ucp/ext/ucpext_content.cxx
@@ -219,7 +219,7 @@ namespace ucb { namespace ucp { namespace ext
// unreachable
}
- aRet <<= setPropertyValues( aProperties, i_rEvironment );
+ aRet <<= setPropertyValues( aProperties );
}
else if ( aCommand.Name == "getPropertySetInfo" )
{
@@ -502,7 +502,7 @@ namespace ucb { namespace ucp { namespace ext
}
- Sequence< Any > Content::setPropertyValues( const Sequence< PropertyValue >& i_rValues, const Reference< XCommandEnvironment >& /* xEnv */)
+ Sequence< Any > Content::setPropertyValues( const Sequence< PropertyValue >& i_rValues)
{
::osl::ClearableGuard< osl::Mutex > aGuard( m_aMutex );
diff --git a/ucb/source/ucp/ext/ucpext_content.hxx b/ucb/source/ucp/ext/ucpext_content.hxx
index 89c8498d36d8..9055a6cd31fd 100644
--- a/ucb/source/ucp/ext/ucpext_content.hxx
+++ b/ucb/source/ucp/ext/ucpext_content.hxx
@@ -114,8 +114,7 @@ namespace ucb { namespace ucp { namespace ext
css::uno::Sequence< css::uno::Any >
setPropertyValues(
- const css::uno::Sequence< css::beans::PropertyValue >& rValues,
- const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv
+ const css::uno::Sequence< css::beans::PropertyValue >& rValues
);
static bool denotesRootContent( const OUString& i_rContentIdentifier );
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index 199d30a505c3..edc0f3d517b1 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -385,7 +385,7 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand,
ucbhelper::cancelCommandExecution(aRet,Environment);
}
- aRet <<= getPropertyValues(Properties,Environment);
+ aRet <<= getPropertyValues(Properties);
}
else if(aCommand.Name == "setPropertyValues")
{
@@ -738,8 +738,7 @@ void FTPContent::insert(const InsertCommandArgument& aInsertCommand,
Reference< XRow > FTPContent::getPropertyValues(
- const Sequence< Property >& seqProp,
- const Reference<XCommandEnvironment>& /*environment*/
+ const Sequence< Property >& seqProp
)
{
rtl::Reference<ucbhelper::PropertyValueSet> xRow =
diff --git a/ucb/source/ucp/ftp/ftpcontent.hxx b/ucb/source/ucp/ftp/ftpcontent.hxx
index 74666dee9a0e..a44b73ffc392 100644
--- a/ucb/source/ucp/ftp/ftpcontent.hxx
+++ b/ucb/source/ucp/ftp/ftpcontent.hxx
@@ -130,9 +130,7 @@ private:
css::uno::Reference<css::sdbc::XRow>
getPropertyValues(
const css::uno::Sequence<
- css::beans::Property>& seqProp,
- const css::uno::Reference<
- css::ucb::XCommandEnvironment >& Environment
+ css::beans::Property>& seqProp
);
css::uno::Sequence<css::uno::Any>
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index 6cd665ccbd21..f3f04ae5f4ec 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -818,8 +818,7 @@ void Content::copyData( const uno::Reference< io::XInputStream >& xIn,
xOut->closeOutput();
}
-bool Content::feedSink( const uno::Reference< uno::XInterface >& xSink,
- const uno::Reference< ucb::XCommandEnvironment >& /*xEnv*/ )
+bool Content::feedSink( const uno::Reference< uno::XInterface >& xSink )
{
if ( !xSink.is() )
return false;
@@ -894,7 +893,7 @@ uno::Any Content::open(const ucb::OpenCommandArgument2 & rOpenCommand,
xEnv );
}
- if ( !feedSink( rOpenCommand.Sink, xEnv ) )
+ if ( !feedSink( rOpenCommand.Sink ) )
{
// Note: rOpenCommand.Sink may contain an XStream
// implementation. Support for this type of
diff --git a/ucb/source/ucp/gio/gio_content.hxx b/ucb/source/ucp/gio/gio_content.hxx
index 366eb721f0c7..9b2849e726e4 100644
--- a/ucb/source/ucp/gio/gio_content.hxx
+++ b/ucb/source/ucp/gio/gio_content.hxx
@@ -112,8 +112,7 @@ private:
const css::uno::Reference<
css::ucb::XCommandEnvironment >& xEnv );
- bool feedSink( const css::uno::Reference< css::uno::XInterface>& aSink,
- const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
+ bool feedSink( const css::uno::Reference< css::uno::XInterface>& aSink );
bool exchangeIdentity(const css::uno::Reference< css::ucb::XContentIdentifier >& xNewId);