2002/css-validator/org/w3c/css/properties/css21 CssBackgroundColor.java,1.1,1.2

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory hutz:/tmp/cvs-serv32751/css21

Modified Files:
	CssBackgroundColor.java 
Log Message:
duplicate code slashing

Index: CssBackgroundColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssBackgroundColor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssBackgroundColor.java	9 Feb 2012 17:36:31 -0000	1.1
+++ CssBackgroundColor.java	24 Aug 2012 07:07:50 -0000	1.2
@@ -4,9 +4,7 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 package org.w3c.css.properties.css21;
 
-import org.w3c.css.parser.CssStyle;
 import org.w3c.css.properties.css.CssProperty;
-import org.w3c.css.properties.css1.Css1Style;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.InvalidParamException;
 import org.w3c.css.values.CssExpression;
@@ -112,32 +110,6 @@
     }
 
     /**
-     * Add this property to the CssStyle.
-     *
-     * @param style The CssStyle
-     */
-    public void addToStyle(ApplContext ac, CssStyle style) {
-        org.w3c.css.properties.css.CssBackground cssBackground = ((Css1Style) style).cssBackground;
-        if (cssBackground.color != null)
-            style.addRedefinitionWarning(ac, this);
-        cssBackground.color = this;
-    }
-
-    /**
-     * Get this property in the style.
-     *
-     * @param style   The style where the property is
-     * @param resolve if true, resolve the style to find this property
-     */
-    public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) {
-        if (resolve) {
-            return ((Css1Style) style).getBackgroundColor();
-        } else {
-            return ((Css1Style) style).cssBackground.color;
-        }
-    }
-
-    /**
      * Compares two properties for equality.
      *
      * @param property The other property.

Received on Friday, 24 August 2012 07:07:53 UTC