ucb/source/ucp/webdav-curl/DAVResource.hxx | 3 -- ucb/source/ucp/webdav-curl/DAVTypes.hxx | 30 -------------------- ucb/source/ucp/webdav-curl/webdavresponseparser.cxx | 2 - 3 files changed, 1 insertion(+), 34 deletions(-)
New commits: commit 59508791aa4f30e1c4f0a61f55e19d839d8a4c30 Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Fri Oct 8 16:10:46 2021 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Nov 1 18:31:10 2021 +0100 ucb: webdav-curl: loplugin:unusedfields in ucb/ [ replicate commit 00bb8141beee7088625992a046e94c6f8da8da83 ] Change-Id: I8144eca6b27fda799a8e875b568a3bcf6b974d96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123281 Tested-by: Michael Stahl <michael.st...@allotropia.de> Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/ucb/source/ucp/webdav-curl/DAVResource.hxx b/ucb/source/ucp/webdav-curl/DAVResource.hxx index 15359719d880..8bbe89587acc 100644 --- a/ucb/source/ucp/webdav-curl/DAVResource.hxx +++ b/ucb/source/ucp/webdav-curl/DAVResource.hxx @@ -48,10 +48,7 @@ struct DAVResource struct DAVResourceInfo { - OUString uri; std::vector < OUString > properties; - - explicit DAVResourceInfo( const OUString & inUri ) : uri( inUri ) {} }; } // namespace http_dav_ucp diff --git a/ucb/source/ucp/webdav-curl/DAVTypes.hxx b/ucb/source/ucp/webdav-curl/DAVTypes.hxx index 063abf03199e..3928d42e921e 100644 --- a/ucb/source/ucp/webdav-curl/DAVTypes.hxx +++ b/ucb/source/ucp/webdav-curl/DAVTypes.hxx @@ -25,36 +25,6 @@ namespace http_dav_ucp { -/* RFC 2518 - -15.1 Class 1 - - A class 1 compliant resource MUST meet all "MUST" requirements in all - sections of this document. - - Class 1 compliant resources MUST return, at minimum, the value "1" in - the DAV header on all responses to the OPTIONS method. - -15.2 Class 2 - - A class 2 compliant resource MUST meet all class 1 requirements and - support the LOCK method, the supportedlock property, the - lockdiscovery property, the Time-Out response header and the Lock- - Token request header. A class "2" compliant resource SHOULD also - support the Time-Out request header and the owner XML element. - - Class 2 compliant resources MUST return, at minimum, the values "1" - and "2" in the DAV header on all responses to the OPTIONS method. -*/ - -struct DAVCapabilities -{ - bool class1; - bool class2; - bool executable; // supports "executable" property (introduced by mod_dav) - - DAVCapabilities() : class1( false ), class2( false ), executable( false ) {} -}; enum Depth { DAVZERO = 0, DAVONE = 1, DAVINFINITY = -1 }; diff --git a/ucb/source/ucp/webdav-curl/webdavresponseparser.cxx b/ucb/source/ucp/webdav-curl/webdavresponseparser.cxx index d95ff1416160..1c24d63200a3 100644 --- a/ucb/source/ucp/webdav-curl/webdavresponseparser.cxx +++ b/ucb/source/ucp/webdav-curl/webdavresponseparser.cxx @@ -761,7 +761,7 @@ namespace // when collecting properties add them to result when there are some if(!maResponseNames.empty()) { - http_dav_ucp::DAVResourceInfo aDAVResourceInfo(maHref); + http_dav_ucp::DAVResourceInfo aDAVResourceInfo; aDAVResourceInfo.properties = maResponseNames; maResult_PropName.push_back(aDAVResourceInfo);