Author: apetrelli
Date: Fri Mar 19 19:15:19 2010
New Revision: 925384

URL: http://svn.apache.org/viewvc?rev=925384&view=rev
Log:
TILESSB-28
Removed useless code.

Modified:
    
tiles/sandbox/trunk/tiles-autotag/tiles-autotag-freemarker-runtime/src/main/java/org/apache/tiles/autotag/freemarker/runtime/FreeMarkerUtil.java

Modified: 
tiles/sandbox/trunk/tiles-autotag/tiles-autotag-freemarker-runtime/src/main/java/org/apache/tiles/autotag/freemarker/runtime/FreeMarkerUtil.java
URL: 
http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-autotag/tiles-autotag-freemarker-runtime/src/main/java/org/apache/tiles/autotag/freemarker/runtime/FreeMarkerUtil.java?rev=925384&r1=925383&r2=925384&view=diff
==============================================================================
--- 
tiles/sandbox/trunk/tiles-autotag/tiles-autotag-freemarker-runtime/src/main/java/org/apache/tiles/autotag/freemarker/runtime/FreeMarkerUtil.java
 (original)
+++ 
tiles/sandbox/trunk/tiles-autotag/tiles-autotag-freemarker-runtime/src/main/java/org/apache/tiles/autotag/freemarker/runtime/FreeMarkerUtil.java
 Fri Mar 19 19:15:19 2010
@@ -34,64 +34,12 @@ import freemarker.template.utility.DeepU
 public final class FreeMarkerUtil {
 
     /**
-     * The name of the attribute that holds the compose stack.
-     */
-    public static final String COMPOSE_STACK_ATTRIBUTE_NAME = 
"org.apache.tiles.template.COMPOSE_STACK";
-
-    /**
      * Private constructor to avoid instantiation.
      */
     private FreeMarkerUtil() {
     }
 
     /**
-     * Unwraps a TemplateModel to extract a string.
-     *
-     * @param model The TemplateModel to unwrap.
-     * @return The unwrapped string.
-     * @since 2.2.0
-     */
-    public static String getAsString(TemplateModel model) {
-        try {
-            return (String) DeepUnwrap.unwrap(model);
-        } catch (TemplateModelException e) {
-            throw new FreemarkerAutotagException("Cannot unwrap a model", e);
-        }
-    }
-
-    /**
-     * Unwraps a TemplateModel to extract a boolean.
-     *
-     * @param model The TemplateModel to unwrap.
-     * @param defaultValue If the value is null, this value will be returned.
-     * @return The unwrapped boolean.
-     * @since 2.2.0
-     */
-    public static boolean getAsBoolean(TemplateModel model, boolean 
defaultValue) {
-        try {
-            Boolean retValue = (Boolean) DeepUnwrap.unwrap(model);
-            return retValue != null ? retValue : defaultValue;
-        } catch (TemplateModelException e) {
-            throw new FreemarkerAutotagException("Cannot unwrap a model", e);
-        }
-    }
-
-    /**
-     * Unwraps a TemplateModel to extract an object.
-     *
-     * @param model The TemplateModel to unwrap.
-     * @return The unwrapped object.
-     * @since 2.2.0
-     */
-    public static Object getAsObject(TemplateModel model) {
-        try {
-            return DeepUnwrap.unwrap(model);
-        } catch (TemplateModelException e) {
-            throw new FreemarkerAutotagException("Cannot unwrap a model", e);
-        }
-    }
-
-    /**
      * Unwraps a TemplateModel to extract an object.
      *
      * @param model The TemplateModel to unwrap.


Reply via email to