You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2019/06/21 15:13:11 UTC

[myfaces] branch master updated: unused method

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

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new 3cfcc27  unused method
3cfcc27 is described below

commit 3cfcc27c5839afd79f431e03825dd43e5c2cd180
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Fri Jun 21 17:13:05 2019 +0200

    unused method
---
 .../apache/myfaces/config/FacesConfigurator.java   | 29 ----------------------
 1 file changed, 29 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java b/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
index 5146708..9991b51 100755
--- a/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
+++ b/impl/src/main/java/org/apache/myfaces/config/FacesConfigurator.java
@@ -19,7 +19,6 @@
 package org.apache.myfaces.config;
 
 import java.io.IOException;
-import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 import java.net.URL;
@@ -870,34 +869,6 @@ public class FacesConfigurator
         }
     }
 
-    /**
-     * A mapper for the handful of system listener defaults
-     * since every default mapper has the source type embedded
-     * in the constructor we can rely on introspection for the
-     * default mapping
-     *
-     * @param systemEventClass the system listener class which has to be checked
-     * @return
-     */
-    String getDefaultSourcClassForSystemEvent(Class systemEventClass)
-    {
-        Constructor[] constructors = systemEventClass.getConstructors();
-        for (Constructor constr : constructors)
-        {
-            Class[] parms = constr.getParameterTypes();
-            if (parms == null || parms.length != 1)
-            {
-                //for standard types we have only one parameter representing the type
-                continue;
-            }
-            return parms[0].getName();
-        }
-        log.warning("The SystemEvent source type for " + systemEventClass.getName()
-                + " could not be detected, either register it manually or use a constructor argument "
-                + "for auto detection, defaulting now to java.lang.Object");
-        return "java.lang.Object";
-    }
-
 
     protected RuntimeConfig getRuntimeConfig()
     {