File tree Expand file tree Collapse file tree 4 files changed +0
-21
lines changed
main/java/com/gargoylesoftware/css
test/java/com/gargoylesoftware/css/parser Expand file tree Collapse file tree 4 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,6 @@ public CSSPrimitiveValueType getPrimitiveType() {
384
384
// case RECT_FUNCTION:
385
385
// return CSSPrimitiveValueType.CSS_RECT;
386
386
case UNICODERANGE :
387
- case SUB_EXPRESSION :
388
387
case FUNCTION :
389
388
case FUNCTION_CALC :
390
389
return CSSPrimitiveValueType .CSS_STRING ;
Original file line number Diff line number Diff line change @@ -123,8 +123,6 @@ enum LexicalUnitType {
123
123
RECT_FUNCTION ,
124
124
/** UNICODERANGE. */
125
125
UNICODERANGE ,
126
- /** SUB_EXPRESSION. */
127
- SUB_EXPRESSION ,
128
126
/** FUNCTION. */
129
127
FUNCTION ,
130
128
/** FUNCTION_CALC. */
Original file line number Diff line number Diff line change @@ -438,12 +438,6 @@ public String getCssText() {
438
438
sb .append (range );
439
439
}
440
440
break ;
441
- case SUB_EXPRESSION :
442
- final String subExpression = getStringValue ();
443
- if (null != subExpression ) {
444
- sb .append (subExpression );
445
- }
446
- break ;
447
441
case FUNCTION :
448
442
case FUNCTION_CALC :
449
443
final String functName = getFunctionName ();
@@ -721,11 +715,6 @@ public String toDebugString() {
721
715
.append (getStringValue ())
722
716
.append (")" );
723
717
break ;
724
- case SUB_EXPRESSION :
725
- sb .append ("SUB_EXPRESSION(" )
726
- .append (getStringValue ())
727
- .append (")" );
728
- break ;
729
718
case FUNCTION :
730
719
case FUNCTION_CALC :
731
720
sb .append ("FUNCTION(" )
Original file line number Diff line number Diff line change @@ -256,13 +256,6 @@ public void refreshToStringCache() throws Exception {
256
256
257
257
unit .setParameters (LexicalUnitImpl .createPixel (null , 4 ));
258
258
assertEquals ("pow(4px)" , unit .toString ());
259
-
260
- unit = new LexicalUnitImpl (null , LexicalUnitType .SUB_EXPRESSION );
261
- assertEquals ("" , unit .toString ());
262
- unit .setStringValue ("value" );
263
-
264
- assertEquals ("value" , unit .toString ());
265
- assertEquals ("SUB_EXPRESSION(value)" , unit .toDebugString ());
266
259
}
267
260
268
261
/**
You can’t perform that action at this time.
0 commit comments