You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/07/30 11:54:47 UTC
svn commit: r1152439 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Author: veithen
Date: Sat Jul 30 09:54:46 2011
New Revision: 1152439
URL: http://svn.apache.org/viewvc?rev=1152439&view=rev
Log:
Removed unused/dead code.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?rev=1152439&r1=1152438&r2=1152439&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java Sat Jul 30 09:54:46 2011
@@ -733,24 +733,4 @@ public class Attachments implements OMAt
partIndex++;
return part;
}
-
- /**
- * Read bytes into the buffer until full or until the EOS
- * @param is
- * @param buffer
- * @return number of bytes read
- * @throws IOException
- */
- private static int readToBuffer(InputStream is, byte[] buffer) throws IOException {
- int index = 0;
- int remainder = buffer.length;
- do {
- int bytesRead;
- while ((bytesRead = is.read(buffer, index, remainder)) > 0) {
- index += bytesRead;
- remainder -= bytesRead;
- }
- } while (remainder > 0 && is.available() > 0); // repeat if more bytes are now available
- return index;
- }
}
\ No newline at end of file