Kaydet (Commit) 131cc96a authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields in ucb,ucbhelper

Change-Id: Id15c92e54669bd5f26adfe0d0b9dda0e8894ccf3
Reviewed-on: https://gerrit.libreoffice.org/68161
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 10134a2f
...@@ -314,7 +314,6 @@ class UCBHELPER_DLLPUBLIC InteractionSupplyAuthentication : ...@@ -314,7 +314,6 @@ class UCBHELPER_DLLPUBLIC InteractionSupplyAuthentication :
OUString m_aRealm; OUString m_aRealm;
OUString m_aUserName; OUString m_aUserName;
OUString m_aPassword; OUString m_aPassword;
OUString m_aAccount;
css::ucb::RememberAuthentication m_eRememberPasswordMode; css::ucb::RememberAuthentication m_eRememberPasswordMode;
css::ucb::RememberAuthentication const m_eDefaultRememberPasswordMode; css::ucb::RememberAuthentication const m_eDefaultRememberPasswordMode;
css::ucb::RememberAuthentication const m_eDefaultRememberAccountMode; css::ucb::RememberAuthentication const m_eDefaultRememberAccountMode;
......
...@@ -497,10 +497,8 @@ FetchResult SAL_CALL CachedContentResultSetStub ...@@ -497,10 +497,8 @@ FetchResult SAL_CALL CachedContentResultSetStub
// class CachedContentResultSetStubFactory // class CachedContentResultSetStubFactory
CachedContentResultSetStubFactory::CachedContentResultSetStubFactory( CachedContentResultSetStubFactory::CachedContentResultSetStubFactory()
const Reference< XMultiServiceFactory > & rSMgr )
{ {
m_xSMgr = rSMgr;
} }
CachedContentResultSetStubFactory::~CachedContentResultSetStubFactory() CachedContentResultSetStubFactory::~CachedContentResultSetStubFactory()
...@@ -546,10 +544,10 @@ XSERVICEINFO_COMMOM_IMPL( CachedContentResultSetStubFactory, ...@@ -546,10 +544,10 @@ XSERVICEINFO_COMMOM_IMPL( CachedContentResultSetStubFactory,
OUString( "com.sun.star.comp.ucb.CachedContentResultSetStubFactory" ) ) OUString( "com.sun.star.comp.ucb.CachedContentResultSetStubFactory" ) )
/// @throws css::uno::Exception /// @throws css::uno::Exception
static css::uno::Reference< css::uno::XInterface > static css::uno::Reference< css::uno::XInterface >
CachedContentResultSetStubFactory_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) CachedContentResultSetStubFactory_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & )
{ {
css::lang::XServiceInfo* pX = css::lang::XServiceInfo* pX =
static_cast<css::lang::XServiceInfo*>(new CachedContentResultSetStubFactory( rSMgr )); static_cast<css::lang::XServiceInfo*>(new CachedContentResultSetStubFactory);
return css::uno::Reference< css::uno::XInterface >::query( pX ); return css::uno::Reference< css::uno::XInterface >::query( pX );
} }
css::uno::Sequence< OUString > css::uno::Sequence< OUString >
......
...@@ -146,12 +146,9 @@ class CachedContentResultSetStubFactory final ...@@ -146,12 +146,9 @@ class CachedContentResultSetStubFactory final
, public css::lang::XServiceInfo , public css::lang::XServiceInfo
, public css::ucb::XCachedContentResultSetStubFactory , public css::ucb::XCachedContentResultSetStubFactory
{ {
css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMgr;
public: public:
CachedContentResultSetStubFactory( CachedContentResultSetStubFactory();
const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr);
virtual ~CachedContentResultSetStubFactory() override; virtual ~CachedContentResultSetStubFactory() override;
......
...@@ -46,7 +46,6 @@ void HierarchyUri::init() const ...@@ -46,7 +46,6 @@ void HierarchyUri::init() const
// Note: Maybe it's a re-init, setUri only resets m_aPath! // Note: Maybe it's a re-init, setUri only resets m_aPath!
m_aService.clear(); m_aService.clear();
m_aParentUri.clear(); m_aParentUri.clear();
m_aName.clear();
// URI must match at least: <sheme>: // URI must match at least: <sheme>:
if ( m_aUri.getLength() < HIERARCHY_URL_SCHEME_LENGTH + 1 ) if ( m_aUri.getLength() < HIERARCHY_URL_SCHEME_LENGTH + 1 )
...@@ -165,7 +164,6 @@ void HierarchyUri::init() const ...@@ -165,7 +164,6 @@ void HierarchyUri::init() const
( nLastSlash != m_aUri.getLength() - 1 ) ) // root ( nLastSlash != m_aUri.getLength() - 1 ) ) // root
{ {
m_aParentUri = m_aUri.copy( 0, nLastSlash ); m_aParentUri = m_aUri.copy( 0, nLastSlash );
m_aName = m_aUri.copy( nLastSlash + 1 );
} }
// success // success
......
...@@ -35,7 +35,6 @@ class HierarchyUri ...@@ -35,7 +35,6 @@ class HierarchyUri
mutable OUString m_aParentUri; mutable OUString m_aParentUri;
mutable OUString m_aService; mutable OUString m_aService;
mutable OUString m_aPath; mutable OUString m_aPath;
mutable OUString m_aName;
mutable bool m_bValid; mutable bool m_bValid;
private: private:
......
...@@ -105,15 +105,6 @@ void Uri::init() const ...@@ -105,15 +105,6 @@ void Uri::init() const
m_aDocId = m_aPath.copy( 1, nSlash - 1 ); m_aDocId = m_aPath.copy( 1, nSlash - 1 );
} }
if ( !m_aDocId.isEmpty() )
{
sal_Int32 nSlash = m_aPath.indexOf( '/', 1 );
if ( nSlash != - 1 )
m_aInternalPath = m_aPath.copy( nSlash );
else
m_aInternalPath = "/";
}
m_eState = VALID; m_eState = VALID;
} }
......
...@@ -37,7 +37,6 @@ class Uri ...@@ -37,7 +37,6 @@ class Uri
mutable OUString m_aParentUri; mutable OUString m_aParentUri;
mutable OUString m_aPath; mutable OUString m_aPath;
mutable OUString m_aDocId; mutable OUString m_aDocId;
mutable OUString m_aInternalPath;
mutable OUString m_aName; mutable OUString m_aName;
mutable OUString m_aDecodedName; mutable OUString m_aDecodedName;
mutable State m_eState; mutable State m_eState;
...@@ -86,7 +85,6 @@ inline void Uri::setUri( const OUString & rUri ) ...@@ -86,7 +85,6 @@ inline void Uri::setUri( const OUString & rUri )
m_aUri = rUri; m_aUri = rUri;
m_aParentUri.clear(); m_aParentUri.clear();
m_aDocId.clear(); m_aDocId.clear();
m_aInternalPath.clear();
m_aPath.clear(); m_aPath.clear();
m_aName.clear(); m_aName.clear();
m_aDecodedName.clear(); m_aDecodedName.clear();
......
...@@ -623,13 +623,10 @@ InteractionSupplyAuthentication::canSetAccount() ...@@ -623,13 +623,10 @@ InteractionSupplyAuthentication::canSetAccount()
// virtual // virtual
void SAL_CALL void SAL_CALL
InteractionSupplyAuthentication::setAccount( const OUString& Account ) InteractionSupplyAuthentication::setAccount( const OUString& /*Account*/ )
{ {
OSL_ENSURE( m_bCanSetAccount, OSL_ENSURE( m_bCanSetAccount,
"InteractionSupplyAuthentication::setAccount - Not supported!" ); "InteractionSupplyAuthentication::setAccount - Not supported!" );
if ( m_bCanSetAccount )
m_aAccount = Account;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment