You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/09/02 18:53:19 UTC

svn commit: r1807076 - /santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp

Author: scantor
Date: Sat Sep  2 18:53:19 2017
New Revision: 1807076

URL: http://svn.apache.org/viewvc?rev=1807076&view=rev
Log:
Don't compute unused variables

Modified:
    santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp

Modified: santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp?rev=1807076&r1=1807075&r2=1807076&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/utils/XSECNameSpaceExpander.cpp Sat Sep  2 18:53:19 2017
@@ -158,7 +158,6 @@ void XSECNameSpaceExpander::expandNameSp
 	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::expandNameSp
 
 	m_expanded = true;
 
-	count = attNodeCount(docElt);
-
 }
 
 
@@ -182,9 +179,6 @@ void XSECNameSpaceExpander::deleteAddedN
 	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::deleteAddedN
 	// Now done - empty everything
 	m_lst.clear();
 	m_expanded = false;
-	count = attNodeCount(docElt);
 
 }