summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 17:35:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 17:51:40 +0200
commitb270233f4b88a8a37f354f2d3af7b3a0f8a8c08b (patch)
tree637baaa2d94aa34b23edce126f29744076ba0a8d /ucb
parent7fa6bdeda854a801d2a1b30324b29fdd383ca0c2 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: Ic94b5fdcf88a9580e816aceb199753e88636810a
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 0e6bef67e496..c4581e1638c9 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -358,7 +358,7 @@ namespace {
} // namespace
extern "C" int NeonSession_CertificationNotify( void *userdata,
- int failures,
+ int,
const ne_ssl_certificate *cert )
{
OSL_ASSERT( cert );
@@ -376,8 +376,6 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
if ( !xCertificateContainer.is() )
return 1;
- failures = 0;
-
char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) );
OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 );
@@ -462,15 +460,13 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
pSession->getRequestEnvironment().m_xEnv );
if ( xEnv.is() )
{
- failures = static_cast< int >( certValidity );
-
uno::Reference< task::XInteractionHandler > xIH(
xEnv->getInteractionHandler() );
if ( xIH.is() )
{
rtl::Reference< ucbhelper::SimpleCertificateValidationRequest >
xRequest( new ucbhelper::SimpleCertificateValidationRequest(
- (sal_Int32)failures, xEECert, pSession->getHostName() ) );
+ (sal_Int32)certValidity, xEECert, pSession->getHostName() ) );
xIH->handle( xRequest.get() );
rtl::Reference< ucbhelper::InteractionContinuation > xSelection