myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: unused param
Date Mon, 10 Dec 2018 12:36:35 GMT
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 3e49a2a  unused param
3e49a2a is described below

commit 3e49a2a3a2245b20f7a65bc784ff1bcc1715391c
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Mon Dec 10 13:36:26 2018 +0100

    unused param
---
 .../org/apache/myfaces/config/MyfacesConfig.java   | 25 ----------------------
 1 file changed, 25 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
index 91a283b..51822a2 100755
--- a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
+++ b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
@@ -45,16 +45,6 @@ public class MyfacesConfig
     private static final String APPLICATION_MAP_PARAM_NAME = MyfacesConfig.class.getName();
 
     /**
-     * If true, rendered HTML code will be formatted, so that it is "human readable".
-     * i.e. additional line separators and whitespace will be written, that do not
-     * influence the HTML code. Default: "true"
-     */
-    @JSFWebConfigParam(defaultValue="true", expectedValues="true, false, on, off, yes, no",since="1.1",
-            ignoreUpperLowerCase=true, group="render")
-    private static final String  INIT_PARAM_PRETTY_HTML = "org.apache.myfaces.PRETTY_HTML";
-    private static final boolean INIT_PARAM_PRETTY_HTML_DEFAULT = true;
-
-    /**
      * Set the time in seconds that check for updates of web.xml and faces-config descriptors
and 
      * refresh the configuration.
      * This param is valid only if project stage is not production. Set this param to 0 disable
this feature.
@@ -412,7 +402,6 @@ public class MyfacesConfig
             "org.apache.myfaces.STRICT_JSF_2_ORIGIN_HEADER_APP_PATH";
     public final static boolean STRICT_JSF_2_ORIGIN_HEADER_APP_PATH_DEFAULT = false;
 
-    private boolean _prettyHtml;
     private long _configRefreshPeriod;
     private boolean _renderViewStateId;
     private boolean _strictXhtmlLinks;
@@ -495,7 +484,6 @@ public class MyfacesConfig
     
     public MyfacesConfig()
     {
-        setPrettyHtml(INIT_PARAM_PRETTY_HTML_DEFAULT);
         setRenderClearJavascriptOnButton(INIT_PARAM_RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON_DEFAULT);
         setRenderViewStateId(INIT_PARAM_RENDER_VIEWSTATE_ID_DEFAULT);
         setStrictXhtmlLinks(INIT_PARAM_STRICT_XHTML_LINKS_DEFAULT);
@@ -533,9 +521,6 @@ public class MyfacesConfig
         
         MyfacesConfig myfacesConfig = new MyfacesConfig();
 
-        myfacesConfig.setPrettyHtml(getBooleanInitParameter(extCtx, INIT_PARAM_PRETTY_HTML,
-                                                            INIT_PARAM_PRETTY_HTML_DEFAULT));
-
         myfacesConfig.setRenderClearJavascriptOnButton(getBooleanInitParameter(extCtx, 
                                                             INIT_PARAM_RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON,
                                                             INIT_PARAM_RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON_DEFAULT));
@@ -782,16 +767,6 @@ public class MyfacesConfig
        }
     }
 
-    public boolean isPrettyHtml()
-    {
-        return _prettyHtml;
-    }
-
-    private void setPrettyHtml(boolean prettyHtml)
-    {
-        _prettyHtml = prettyHtml;
-    }
-
     public long getConfigRefreshPeriod()
     {
         return _configRefreshPeriod;


Mime
View raw message