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

mattsicker pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit ee873fefe8591986b3c103dbd7019a10f6e88801
Author: Matt Sicker <[email protected]>
AuthorDate: Tue Jan 2 17:14:07 2024 -0600

    Remove unused method
---
 .../src/main/java/org/apache/logging/log4j/plugins/di/Key.java    | 8 --------
 1 file changed, 8 deletions(-)

diff --git 
a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/di/Key.java 
b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/di/Key.java
index 3e3f8ac1a4..cd11419571 100644
--- a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/di/Key.java
+++ b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/di/Key.java
@@ -166,14 +166,6 @@ public class Key<T> implements StringBuilderFormattable, 
Comparable<Key<T>> {
         return new Key<>(type, rawType, qualifierType, name, namespace, order);
     }
 
-    /**
-     * Returns a new key using the provided class. The name, namespace, 
qualifier, and order of this key are
-     * copied into the new key.
-     */
-    public final <U> Key<U> withType(final Class<U> type) {
-        return new Key<>(type, type, qualifierType, name, namespace, order);
-    }
-
     /**
      * Returns a new key using the provided name and the same type and 
qualifier type as this instance.
      */

Reply via email to