vdkoogh 2003/11/20 00:55:58
Modified: src/org/apache/xml/security/signature XMLSignatureInput.java
Log:
Removed unused private field _documentElement
Changed empty statement to //do nothing
removed unused local variable currentNodeIsVisible
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.23 +2 -10
xml-security/src/org/apache/xml/security/signature/XMLSignatureInput.java
Index: XMLSignatureInput.java
===================================================================
RCS file:
/home/cvs/xml-security/src/org/apache/xml/security/signature/XMLSignatureInput.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- XMLSignatureInput.java 11 Feb 2003 16:02:51 -0000 1.22
+++ XMLSignatureInput.java 20 Nov 2003 08:55:58 -0000 1.23
@@ -562,9 +562,6 @@
/** Field _doc */
private Document _doc = null;
- /** Field _documentElement */
- private Element _documentElement = null;
-
/** Field _writer */
private Writer _writer = null;
//J-
@@ -628,7 +625,7 @@
private static final int NODE_AFTER_DOCUMENT_ELEMENT = 1;
//J+
private XMLSignatureInputDebugger() {
- ;
+ // do nothing
}
/**
@@ -679,7 +676,6 @@
Node n = (Node) this._xpathNodeSet.iterator().next();
this._doc = XMLUtils.getOwnerDocument(n);
- this._documentElement = this._doc.getDocumentElement();
}
try {
@@ -694,7 +690,6 @@
} finally {
this._xpathNodeSet = null;
this._doc = null;
- this._documentElement = null;
this._writer = null;
}
}
@@ -709,9 +704,6 @@
throws XMLSignatureException, IOException {
int currentNodeType = currentNode.getNodeType();
- boolean currentNodeIsVisible =
- this._xpathNodeSet.contains(currentNode);
-
switch (currentNodeType) {
case Node.DOCUMENT_TYPE_NODE :