[xml-security-c] 13/21: Don't compute unused variables

Ferenc Wágner wferi-guest at moszumanska.debian.org
Mon Jun 27 12:20:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to branch patch-queue/warn-fixes
in repository xml-security-c.

commit 134e3c164a273f41e3b5c8adb999140f6facd48c
Author: Ferenc Wágner <wferi at niif.hu>
Date:   Sun Jan 31 00:37:51 2016 +0100

    Don't compute unused variables
---
 xsec/utils/XSECNameSpaceExpander.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/xsec/utils/XSECNameSpaceExpander.cpp b/xsec/utils/XSECNameSpaceExpander.cpp
index ff147b7..448469e 100644
--- a/xsec/utils/XSECNameSpaceExpander.cpp
+++ b/xsec/utils/XSECNameSpaceExpander.cpp
@@ -158,7 +158,6 @@ void XSECNameSpaceExpander::expandNameSpaces(void) {
 	DOMElement	*docElt;		// The document element - do not expand it's namespaces
 	
 	docElt = mp_fragment; //mp_doc->getDocumentElement();
-	int count = attNodeCount(docElt);
 
 	DOMNode *c;
 
@@ -172,8 +171,6 @@ void XSECNameSpaceExpander::expandNameSpaces(void) {
 
 	m_expanded = true;
 
-	count = attNodeCount(docElt);
-
 }
 
 
@@ -182,9 +179,6 @@ void XSECNameSpaceExpander::deleteAddedNamespaces(void) {
 	NameSpaceEntryListVectorType::size_type size = m_lst.size();
 	XSECNameSpaceEntry *e;
 
-	DOMElement *docElt = mp_fragment; //mp_doc->getDocumentElement();
-	int 	count = attNodeCount(docElt);
-
 	NameSpaceEntryListVectorType::size_type i;
 
 	for (i = 0; i < size; ++i) {
@@ -206,7 +200,6 @@ void XSECNameSpaceExpander::deleteAddedNamespaces(void) {
 	// Now done - empty everything
 	m_lst.clear();
 	m_expanded = false;
-	count = attNodeCount(docElt);
 
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xml-security-c.git



More information about the Pkg-shibboleth-devel mailing list