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 55b6211bdb0062365aa1f96d002d42e669b7614a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed May 3 14:18:14 2023 -0400

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

diff --git 
a/src/main/java/org/apache/commons/io/build/AbstractOriginSupplier.java 
b/src/main/java/org/apache/commons/io/build/AbstractOriginSupplier.java
index e6ed6db4..706ec285 100644
--- a/src/main/java/org/apache/commons/io/build/AbstractOriginSupplier.java
+++ b/src/main/java/org/apache/commons/io/build/AbstractOriginSupplier.java
@@ -45,19 +45,6 @@ import 
org.apache.commons.io.build.AbstractOrigin.WriterOrigin;
  */
 public abstract class AbstractOriginSupplier<T, B extends 
AbstractOriginSupplier<T, B>> extends AbstractSupplier<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;
-    }
-
     /**
      * Creates a new byte array origin for a byte array.
      *

Reply via email to