Skip to content

Commit f90324f

Browse files
committed
[CODEC-116] Remove deprecated package private method Base64.discardWhitespace(byte[])
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1072769 13f79535-47bb-0310-9956-ffa450edef68
1 parent 945ae4b commit f90324f

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

src/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -679,33 +679,6 @@ public static byte[] decodeBase64(byte[] base64Data) {
679679
return new Base64().decode(base64Data);
680680
}
681681

682-
/**
683-
* Discards any whitespace from a base-64 encoded block.
684-
*
685-
* @param data
686-
* The base-64 encoded data to discard the whitespace from.
687-
* @return The data, less whitespace (see RFC 2045).
688-
* @deprecated This method is no longer needed
689-
*/
690-
static byte[] discardWhitespace(byte[] data) {
691-
byte groomedData[] = new byte[data.length];
692-
int bytesCopied = 0;
693-
for (int i = 0; i < data.length; i++) {
694-
switch (data[i]) {
695-
case ' ' :
696-
case '\n' :
697-
case '\r' :
698-
case '\t' :
699-
break;
700-
default :
701-
groomedData[bytesCopied++] = data[i];
702-
}
703-
}
704-
byte packedData[] = new byte[bytesCopied];
705-
System.arraycopy(groomedData, 0, packedData, 0, bytesCopied);
706-
return packedData;
707-
}
708-
709682
// Implementation of the Encoder Interface
710683

711684
// Implementation of integer encoding used for crypto

0 commit comments

Comments
 (0)