You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by vd...@apache.org on 2003/11/20 09:27:09 UTC
cvs commit: xml-security/src/ant HexDump.java
vdkoogh 2003/11/20 00:27:09
Modified: src/ant HexDump.java
Log:
Removed unused statements/imports
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.4 +0 -21 xml-security/src/ant/HexDump.java
Index: HexDump.java
===================================================================
RCS file: /home/cvs/xml-security/src/ant/HexDump.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HexDump.java 11 Feb 2003 16:02:45 -0000 1.3
+++ HexDump.java 20 Nov 2003 08:27:08 -0000 1.4
@@ -93,9 +93,6 @@
return prettyPrintHex(sToConvert.getBytes());
}
- /** Field DEBUG */
- private static boolean DEBUG = false;
-
/** Field HEX_DIGITS */
private final static char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5', '6',
'7', '8', '9', 'A', 'B', 'C', 'D',
@@ -116,14 +113,6 @@
/** Field WITH_BYTE_SEPARATOR */
private static boolean WITH_BYTE_SEPARATOR = true;
- /**
- * Sets the Debug attribute of the Convert object
- *
- * @param dbg The new Debug value
- */
- public static void setDebug(boolean dbg) {
- DEBUG = dbg;
- }
/**
* Sets the WithByteSeparator attribute of the Convert class
@@ -316,7 +305,6 @@
*/
public static String byteArrayToHexString(byte[] block) {
- long lTime = System.currentTimeMillis();
StringBuffer buf = new StringBuffer();
int len = block.length;
@@ -355,7 +343,6 @@
public static String byteArrayToHexString(byte[] block, int offset,
int length) {
- long lTime = System.currentTimeMillis();
StringBuffer buf = new StringBuffer();
int len = block.length;
@@ -467,7 +454,6 @@
*/
public static String toHexString(byte[] ba, int offset, int length) {
- long lTime = System.currentTimeMillis();
char[] buf;
if (WITH_BYTE_SEPARATOR) {
@@ -762,9 +748,6 @@
System.out.println("-test and demo of the converter ");
- // enable debug outputs
- setDebug(false);
-
String str = new String("Niko");
byte[] ba = str.getBytes();
@@ -876,10 +859,6 @@
System.out.println(strToConvert + " = "
+ stringToHexString(strToConvert));
System.out.println("Das ist die Hex-Darstellung des obigen Strings");
-
- byte[] baConverted = new byte[strToConvert.length()];
-
- baConverted = hexStringToByteArray(strToConvert);
System.out.println("ba = " + toHexString(ba));
}