summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-25 17:49:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-26 08:01:42 +0100
commit51b5b93092d6231615de470c62494c24e54828a1 (patch)
tree7d1556d834a9f61e0f40f29f318c57328cba67e7 /ucb
parentb9fe4f26eaf1099b8d0907b8d9cbf52c86914466 (diff)
remove some unused local vars
found by a more aggressive variant of loplugin:unusedvariables. This is my first pass, committing the simplest and most obviously unnecessary vars Change-Id: I9676a6e39a101937097788548764506c93811c57 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87414 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx3
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontent.cxx1
2 files changed, 1 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index c9fdfe8c6552..5a345e6fb17c 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1343,7 +1343,7 @@ namespace cmis
{
try
{
- libcmis::FolderPtr pNew = pFolder->createFolder( m_pObjectProps );
+ pFolder->createFolder( m_pObjectProps );
sNewPath = STD_TO_OUSTR( newPath );
}
catch ( const libcmis::Exception& )
@@ -1887,7 +1887,6 @@ namespace cmis
}
OUString sParentURL = m_xIdentifier->getContentIdentifier();
- URL aParentURL( sParentURL );
// Set the parent URL for the transient objects
uno::Reference< ucb::XContentIdentifier > xId(new ::ucbhelper::ContentIdentifier(sParentURL));
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index 07a65d6bda09..39323337d2de 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -2948,7 +2948,6 @@ Content::ResourceType Content::resourceTypeForLocks(
{
osl::MutexGuard g(m_aMutex);
//check if cache contains what we need, usually the first PROPFIND on the URI has supported lock
- std::unique_ptr< ContentProperties > xProps;
if (m_xCachedProps)
{
uno::Sequence< ucb::LockEntry > aSupportedLocks;