From 51b5b93092d6231615de470c62494c24e54828a1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 25 Jan 2020 17:49:47 +0200 Subject: 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 --- ucb/source/ucp/cmis/cmis_content.cxx | 3 +-- ucb/source/ucp/webdav-neon/webdavcontent.cxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'ucb') 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; -- cgit