This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git

commit c8272c1befb461db0825c4aef53b37dc426beed8
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed May 31 18:07:24 2023 -0400

    Inline oneliner
---
 .../java/org/apache/commons/imaging/common/BinaryFunctions.java    | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java 
b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
index 8b0e649f..53f37c09 100644
--- a/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
+++ b/src/main/java/org/apache/commons/imaging/common/BinaryFunctions.java
@@ -57,11 +57,6 @@ public final class BinaryFunctions {
         return true;
     }
 
-    public static void copyStreamToStream(final InputStream is, final 
OutputStream os)
-            throws IOException {
-        IOUtils.copy(is, os);
-    }
-
     public static int findNull(final byte[] src, final int start, final String 
message) throws ImagingException {
         for (int i = start; i < src.length; i++) {
             if (src[i] == 0) {
@@ -100,7 +95,7 @@ public final class BinaryFunctions {
 
     public static byte[] getStreamBytes(final InputStream is) throws 
IOException {
         final ByteArrayOutputStream os = new ByteArrayOutputStream();
-        copyStreamToStream(is, os);
+        IOUtils.copy(is, os);
         return os.toByteArray();
     }
 

Reply via email to