You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/11/04 18:21:27 UTC

svn commit: r832803 [2/2] - in /myfaces/tobago/trunk: core/src/main/java/org/apache/myfaces/tobago/renderkit/css/ core/src/main/java/org/apache/myfaces/tobago/renderkit/html/ core/src/main/java/org/apache/myfaces/tobago/webapp/ extension/deprecation/sr...

Modified: myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java?rev=832803&r1=832802&r2=832803&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java Wed Nov  4 17:21:25 2009
@@ -32,7 +32,6 @@
 import org.apache.myfaces.tobago.renderkit.LayoutableRenderer;
 import org.apache.myfaces.tobago.renderkit.html.HtmlAttributes;
 import org.apache.myfaces.tobago.renderkit.html.HtmlConstants;
-import org.apache.myfaces.tobago.renderkit.html.HtmlStyleMap;
 import org.apache.myfaces.tobago.renderkit.html.StyleClasses;
 import org.apache.myfaces.tobago.renderkit.util.RenderUtil;
 import org.apache.myfaces.tobago.util.ComponentUtils;
@@ -198,20 +197,6 @@
     return buffer.toString();
   }
 
-  public static HtmlStyleMap ensureStyleAttributeMap(UIComponent component) {
-    return ensureStyleAttributeMap(component, Attributes.STYLE);
-  }
-
-  private static HtmlStyleMap ensureStyleAttributeMap(UIComponent component, String attribute) {
-    final Map attributes = component.getAttributes();
-    HtmlStyleMap style = (HtmlStyleMap) attributes.get(attribute);
-    if (style == null) {
-      style = new HtmlStyleMap();
-      attributes.put(attribute, style);
-    }
-    return style;
-  }
-
   public static String replaceStyleAttribute(String style, String name,
       String value) {
     style = removeStyleAttribute(style != null ? style : "", name);