summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2021-10-08 16:10:46 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-01 18:31:10 +0100
commit59508791aa4f30e1c4f0a61f55e19d839d8a4c30 (patch)
tree3dbbebe53d33fb799d8b90bcbdbeb04d5251d24a
parente1bb4425e442eacdc1ca3518d62116e739ba7eb0 (diff)
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.stahl@allotropia.de> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--ucb/source/ucp/webdav-curl/DAVResource.hxx3
-rw-r--r--ucb/source/ucp/webdav-curl/DAVTypes.hxx30
-rw-r--r--ucb/source/ucp/webdav-curl/webdavresponseparser.cxx2
3 files changed, 1 insertions, 34 deletions
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);