diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2021-10-11 20:31:32 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-01 18:48:15 +0100 |
commit | 08bbf853d52a4a36a223ebbe751bffd7000180ca (patch) | |
tree | 9cc9ee5dc9401eb0dab5844456b964bd35d91fc8 /ucb | |
parent | 9dc9201c6eee6ffb8d547752dd6193a270fa85fb (diff) |
ucb: webdav-curl: loplugin:unusedmethods in sc..vcl
[ replicate commit c4cd079b8f613084a99a83b95c3968b65cbd8900 ]
Change-Id: Ifdd0c5823c02102fc84019912fbb9e8098ecc8db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123490
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-curl/DAVTypes.hxx | 1 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/webdavcontent.cxx | 17 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/webdavcontent.hxx | 4 |
3 files changed, 0 insertions, 22 deletions
diff --git a/ucb/source/ucp/webdav-curl/DAVTypes.hxx b/ucb/source/ucp/webdav-curl/DAVTypes.hxx index be6eedc2d4c0..23cdd9f694d0 100644 --- a/ucb/source/ucp/webdav-curl/DAVTypes.hxx +++ b/ucb/source/ucp/webdav-curl/DAVTypes.hxx @@ -118,7 +118,6 @@ namespace http_dav_ucp void setAllowedMethods( OUString & aAllowedMethods ) { m_aAllowedMethods = aAllowedMethods; } ; OUString & getAllowedMethods() { return m_aAllowedMethods; } ; bool isLockAllowed() const { return ( m_aAllowedMethods.indexOf( "LOCK" ) != -1 ); }; - bool isUnlockAllowed() const { return ( m_aAllowedMethods.indexOf( "UNLOCK" ) != -1 ); }; void setLocked( bool locked = true ) { m_isLocked = locked; } ; bool isLocked() const { return m_isLocked; }; diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx b/ucb/source/ucp/webdav-curl/webdavcontent.cxx index 99630aff9b9e..331ca1a085e0 100644 --- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx @@ -4012,23 +4012,6 @@ void Content::getResourceOptions( } } -void Content::getResourceOptions( - const uno::Reference< ucb::XCommandEnvironment >& xEnv, - DAVOptions& rDAVOptions ) -{ - std::unique_ptr< DAVResourceAccess > xResAccess; - { - osl::MutexGuard aGuard( m_aMutex ); - xResAccess.reset( new DAVResourceAccess( *m_xResAccess ) ); - } - getResourceOptions( xEnv, rDAVOptions, xResAccess ); - { - osl::Guard< osl::Mutex > aGuard( m_aMutex ); - m_xResAccess.reset( new DAVResourceAccess( *xResAccess ) ); - } -} - - //static bool Content::isResourceAvailable( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.hxx b/ucb/source/ucp/webdav-curl/webdavcontent.hxx index ea2a9ec38387..6afa65f9e479 100644 --- a/ucb/source/ucp/webdav-curl/webdavcontent.hxx +++ b/ucb/source/ucp/webdav-curl/webdavcontent.hxx @@ -291,10 +291,6 @@ public: DAVOptions& rDAVOptions, const std::unique_ptr< DAVResourceAccess > & rResAccess ); - /// @throws css::uno::Exception - void getResourceOptions( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, - DAVOptions& rDAVOptions ); - static bool isResourceAvailable( const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv, const std::unique_ptr< DAVResourceAccess > & rResAccess, DAVOptions& rDAVOptions ); |