You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/05/03 23:48:03 UTC

[commons-io] 06/07: Remove unused new method

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-io.git

commit 1cc2913eea3784532d45235c0d2fd474c4e8f098
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 3 14:18:47 2023 -0400

    Remove unused new method
---
 .../org/apache/commons/io/build/AbstractStreamBuilder.java  | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/build/AbstractStreamBuilder.java b/src/main/java/org/apache/commons/io/build/AbstractStreamBuilder.java
index c42aff52..e938b7eb 100644
--- a/src/main/java/org/apache/commons/io/build/AbstractStreamBuilder.java
+++ b/src/main/java/org/apache/commons/io/build/AbstractStreamBuilder.java
@@ -31,19 +31,6 @@ import org.apache.commons.io.IOUtils;
  */
 public abstract class AbstractStreamBuilder<T, B extends AbstractStreamBuilder<T, B>> extends AbstractOriginSupplier<T, B> {
 
-    /**
-     * Throws {@link IllegalArgumentException} if the initialBufferSize is less than zero.
-     *
-     * @param initialBufferSize the value to test.
-     * @return the input value.
-     */
-    protected static int checkBufferSize(final int initialBufferSize) {
-        if (initialBufferSize < 0) {
-            throw new IllegalArgumentException("Initial buffer size must be at least 0.");
-        }
-        return initialBufferSize;
-    }
-
     /**
      * The buffer size, defaults to {@link IOUtils#DEFAULT_BUFFER_SIZE} ({@value IOUtils#DEFAULT_BUFFER_SIZE}).
      */