diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-06 15:49:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-07 07:06:27 +0100 |
commit | 5cad267240a11daa0be76077f858f37679f330d7 (patch) | |
tree | 3cf47ee9cac0e6e36f38621dd9b89a8a77e3b884 /ucb | |
parent | 3efde47ec9ee091479c04129696f99dc934c3f64 (diff) |
loplugin:unusedmethods
Change-Id: Ic1ba90447575278d854af85312271c41766b776b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126422
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-curl/DAVRequestEnvironment.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/DAVResource.hxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/SerfLockStore.cxx | 24 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-curl/SerfLockStore.hxx | 5 |
4 files changed, 1 insertions, 35 deletions
diff --git a/ucb/source/ucp/webdav-curl/DAVRequestEnvironment.hxx b/ucb/source/ucp/webdav-curl/DAVRequestEnvironment.hxx index ed08c613e7e8..dd2f4f9cf0bc 100644 --- a/ucb/source/ucp/webdav-curl/DAVRequestEnvironment.hxx +++ b/ucb/source/ucp/webdav-curl/DAVRequestEnvironment.hxx @@ -35,12 +35,10 @@ struct DAVRequestEnvironment rtl::Reference< DAVAuthListener > m_xAuthListener; DAVRequestHeaders m_aRequestHeaders; -DAVRequestEnvironment( const rtl::Reference< DAVAuthListener > & xListener, + DAVRequestEnvironment( const rtl::Reference< DAVAuthListener > & xListener, const DAVRequestHeaders & rRequestHeaders) : m_xAuthListener( xListener ), m_aRequestHeaders( rRequestHeaders ) {} - - DAVRequestEnvironment() {} }; } // namespace http_dav_ucp diff --git a/ucb/source/ucp/webdav-curl/DAVResource.hxx b/ucb/source/ucp/webdav-curl/DAVResource.hxx index 4b031f0a2a57..93cdd743f194 100644 --- a/ucb/source/ucp/webdav-curl/DAVResource.hxx +++ b/ucb/source/ucp/webdav-curl/DAVResource.hxx @@ -41,9 +41,6 @@ struct DAVResource { OUString uri; std::vector< DAVPropertyValue > properties; - - DAVResource() {} - explicit DAVResource( const OUString & inUri ) : uri( inUri ) {} }; struct DAVResourceInfo diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx index 3601d0c66642..932fb5262411 100644 --- a/ucb/source/ucp/webdav-curl/SerfLockStore.cxx +++ b/ucb/source/ucp/webdav-curl/SerfLockStore.cxx @@ -104,11 +104,6 @@ SerfLockStore::~SerfLockStore() } } -bool SerfLockStore::finishing() const -{ - return m_bFinishing; -} - void SerfLockStore::startTicker() { osl::MutexGuard aGuard( m_aMutex ); @@ -193,25 +188,6 @@ void SerfLockStore::addLock( const OUString& rURI, } -void SerfLockStore::updateLock( const OUString& rURI, - sal_Int32 nLastChanceToSendRefreshRequest ) -{ - assert(rURI.startsWith("http://") || rURI.startsWith("https://")); - - osl::MutexGuard aGuard( m_aMutex ); - - LockInfoMap::iterator const it(m_aLockInfoMap.find(rURI)); - SAL_WARN_IF( it == m_aLockInfoMap.end(), "ucb.ucp.webdav", - "SerfLockStore::updateLock: lock not found!" ); - - if ( it != m_aLockInfoMap.end() ) - { - (*it).second.m_nLastChanceToSendRefreshRequest - = nLastChanceToSendRefreshRequest; - } -} - - void SerfLockStore::removeLock(const OUString& rURI) { assert(rURI.startsWith("http://") || rURI.startsWith("https://")); diff --git a/ucb/source/ucp/webdav-curl/SerfLockStore.hxx b/ucb/source/ucp/webdav-curl/SerfLockStore.hxx index fc0ed6120532..7e0757004c41 100644 --- a/ucb/source/ucp/webdav-curl/SerfLockStore.hxx +++ b/ucb/source/ucp/webdav-curl/SerfLockStore.hxx @@ -67,8 +67,6 @@ public: SerfLockStore(); ~SerfLockStore(); - bool finishing() const; - OUString const* getLockTokenForURI(OUString const& rURI, css::ucb::Lock const* pLock); void addLock( const OUString& rURI, @@ -79,9 +77,6 @@ public: // -1: infinite lock, no refresh sal_Int32 nLastChanceToSendRefreshRequest ); - void updateLock( const OUString& rURI, - sal_Int32 nLastChanceToSendRefreshRequest ); - void removeLock(const OUString& rURI); void refreshLocks(); |