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 9e74b834425c734a51b982b8f547705a88651a7d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed May 3 08:26:22 2023 -0400

    Remove new API
---
 .../java/org/apache/commons/io/function/IOBiFunction.java   | 13 -------------
 .../org/apache/commons/io/function/IOBiFunctionTest.java    |  5 -----
 2 files changed, 18 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/function/IOBiFunction.java 
b/src/main/java/org/apache/commons/io/function/IOBiFunction.java
index 57239510..0231630f 100644
--- a/src/main/java/org/apache/commons/io/function/IOBiFunction.java
+++ b/src/main/java/org/apache/commons/io/function/IOBiFunction.java
@@ -41,19 +41,6 @@ import java.util.function.Function;
 @FunctionalInterface
 public interface IOBiFunction<T, U, R> {
 
-    /**
-     * Returns the no-op singleton.
-     *
-     * @param <T> the type of the first argument to the function
-     * @param <U> the type of the second argument to the function
-     * @param <R> the type of the result of the function
-     * @return The no-op singleton.
-     */
-    @SuppressWarnings("unchecked")
-    static <T, U, R> IOBiFunction<T, U, R> noop() {
-        return Constants.IO_BI_FUNCTION;
-    }
-
     /**
      * Creates a composed function that first applies this function to its 
input, and then applies the {@code after}
      * function to the result. If evaluation of either function throws an 
exception, it is relayed to the caller of the
diff --git a/src/test/java/org/apache/commons/io/function/IOBiFunctionTest.java 
b/src/test/java/org/apache/commons/io/function/IOBiFunctionTest.java
index b854b4e5..b94d812f 100644
--- a/src/test/java/org/apache/commons/io/function/IOBiFunctionTest.java
+++ b/src/test/java/org/apache/commons/io/function/IOBiFunctionTest.java
@@ -87,9 +87,4 @@ public class IOBiFunctionTest {
         assertNotEquals(0L, map.get("1"));
     }
 
-    @Test
-    public void testNoopIOConsumer() throws IOException {
-        assertNull(IOBiFunction.noop().apply(null, null));
-    }
-
 }

Reply via email to