ucb/source/ucp/webdav-curl/DAVTypes.hxx      |    1 -
 ucb/source/ucp/webdav-curl/webdavcontent.cxx |   17 -----------------
 ucb/source/ucp/webdav-curl/webdavcontent.hxx |    4 ----
 3 files changed, 22 deletions(-)

New commits:
commit 08bbf853d52a4a36a223ebbe751bffd7000180ca
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Mon Oct 11 20:31:32 2021 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Nov 1 18:48:15 2021 +0100

    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.st...@allotropia.de>
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

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 );

Reply via email to