vdkoogh 2003/11/20 01:04:23
Modified: src/org/apache/xml/security/utils/resolver/implementations
ResolverXPointer.java
Log:
Removed unused code
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.16 +1 -20
xml-security/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java
Index: ResolverXPointer.java
===================================================================
RCS file:
/home/cvs/xml-security/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ResolverXPointer.java 29 Apr 2003 21:36:57 -0000 1.15
+++ ResolverXPointer.java 20 Nov 2003 09:04:23 -0000 1.16
@@ -112,7 +112,6 @@
public XMLSignatureInput engineResolve(Attr uri, String BaseURI)
throws ResourceResolverException {
- String uriNodeValue = uri.getNodeValue();
NodeList resultNodes = null;
Document doc = uri.getOwnerDocument();
@@ -178,29 +177,11 @@
return false;
}
- String uriNodeValue = uri.getNodeValue();
-
if (isXPointerSlash(uri, BaseURI) || isXPointerId(uri, BaseURI)) {
return true;
}
return false;
- }
-
- /**
- * Method isSameDocumentReference
- *
- * @param uri
- * @param BaseURI
- *
- */
- private static boolean isSameDocumentReference(Attr uri, String BaseURI) {
-
- if (uri.getNodeValue().startsWith("#")) {
- return true;
- } else {
- return false;
- }
}
/**