- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 30 Jul 2007 11:34:41 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv8668/org/w3c/css/css Modified Files: CssRuleList.java Log Message: Removing the toHTML and clear functions (not used anymore thanks to Velocity) Index: CssRuleList.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssRuleList.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- CssRuleList.java 13 Jul 2007 13:32:19 -0000 1.15 +++ CssRuleList.java 30 Jul 2007 11:34:38 -0000 1.16 @@ -8,7 +8,6 @@ import java.util.Vector; import org.w3c.css.parser.AtRule; -import org.w3c.css.util.Util; public class CssRuleList { @@ -65,62 +64,4 @@ return ret.toString(); } - /* - * public String toString() { StringBuffer ret = new StringBuffer(); - * - * if (atRule == null || atRule.isEmpty()) { if (null != atRule && - * !atRuleString.equals("")) { ret.append(atRuleString); ret.append(' '); - * ret.append('\n'); } } else { if (!atRuleString.equals("")) { - * ret.append(atRuleString); ret.append(' '); ret.append('{'); - * ret.append('\n'); indent = " "; } for (int i = 0; i < rulelist.size() ; - * i++ ) { ret.append(indent); - * ret.append(((CssStyleRule)rulelist.elementAt(i)).toString()); } - * - * if (!atRuleString.equals("")) { ret.append('}'); ret.append('\n'); } } - * return ret.toString(); } - */ - - /* - * public String toHTML() { StringBuffer ret = new StringBuffer(); - * - * if (null != atRule && atRule.isEmpty()) { if (!atRuleString.equals("")) { - * ret.append("<li><span class='atSelector'>"); ret.append(atRuleString); - * ret.append("</span></li> \n\n"); } } else { if - * (!atRuleString.equals("")) { ret.append("<li><span - * class='atSelector'>"); ret.append(atRuleString); ret.append("</span> {\n<ul>\n"); } - * for (int i = 0; i < rulelist.size() ; i++ ) { - * ret.append(((CssStyleRule)rulelist.elementAt(i)).toHTML()); } - * - * if (!atRuleString.equals("")) { ret.append("</ul>}</li>\n"); } } - * return ret.toString(); } - */ - public String toHTML() { - String ret = "\t\t\t\t\t"; - if (null != atRule && atRule.isEmpty()) { - if (!atRuleString.equals("")) { - ret += "<div class='atRule'><span class='atSelector'>"; - ret += Util.escapeHTML(atRuleString); - ret += "</span></div> \n\n"; - } - } else { - if (!atRuleString.equals("")) { - ret += "<div class='atRule'><span class='atSelector'>"; - ret += Util.escapeHTML(atRuleString); - ret += "</span> {\n\t\t\t\t\t\t<div>\n"; - } - for (int i = 0; i < rulelist.size(); i++) { - ret += ((CssStyleRule) rulelist.elementAt(i)).toHTML(); - } - if (!atRuleString.equals("")) { - ret += "\t\t\t\t\t\t</div>}\n\t\t\t\t\t</div>\n"; - } - } - return ret; - } - - public void clear() { - atRuleString = ""; - rulelist.removeAllElements(); - pseudopage = ""; - } }
Received on Monday, 30 July 2007 11:34:43 UTC