Skip to content

Commit e9cf508

Browse files
committed
removed unused (and deprecated) methods
1 parent 7eb47d1 commit e9cf508

File tree

2 files changed

+0
-69
lines changed

2 files changed

+0
-69
lines changed

org/w3c/css/css/CssParser.java

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,6 @@ public interface CssParser {
6464
public void parseURL(ApplContext ac, URL url, String title, String kind,
6565
String media, int origin);
6666

67-
/**
68-
* Parse a STYLE element.
69-
* The real difference between this method and the precedent
70-
* is that this method can take a string. The URL is used
71-
* to resolve import statement and URL statement in the style
72-
* sheet.
73-
* <p/>
74-
* For a backward compatibility, <code>parseStyleElement</code> and
75-
* <code>parseStyleAttribute</code> use a string for the input.
76-
*
77-
* @param input the input string.
78-
* @param url the URL where the input stream comes from.
79-
* @param lineno The number line in the source document.
80-
* It is used for error message
81-
* @see #parseStyleElement(ApplContext, InputStream, String, String, URL, int)
82-
* @deprecated Replaced by parseStyleElement
83-
*/
84-
public abstract void parseStyleElement(ApplContext ac, String input,
85-
URL url, int lineno);
86-
8767
/**
8868
* Parse a STYLE element.
8969
* The real difference between this method and the precedent
@@ -118,27 +98,6 @@ public abstract void parseStyleElement(ApplContext ac, Reader reader,
11898
String title, String media, URL url,
11999
int lineno);
120100

121-
122-
/**
123-
* Parser a STYLE attribute.
124-
* Here, you must generate your own uniq id for the context.
125-
* After, you can reference this style attribute by the id.
126-
* <p/>
127-
* <strong>Be careful, the id must be uniq !</strong>
128-
* <p/>
129-
* For a backward compatibility, <code>parseStyleElement</code> and
130-
* <code>parseStyleAttribute</code> use a string for the input.
131-
*
132-
* @param ac the validation context
133-
* @param input the input string.
134-
* @param id your uniq id to reference this style attribute.
135-
* @param url the URL where the input stream comes from.
136-
* @param lineno The number line in the source document. It is used for error message.
137-
* @see #parseStyleAttribute(ApplContext, InputStream, String, URL, int)
138-
* @deprecated Replaced by parseStyleAttribute
139-
*/
140-
public abstract void parseStyleAttribute(ApplContext ac, String input, String id, URL url, int lineno);
141-
142101
/**
143102
* Parser a STYLE attribute.
144103
* Here, you must generate your own uniq id for the context.

org/w3c/css/css/StyleSheetParser.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.w3c.css.util.Warning;
2929
import org.w3c.css.util.Warnings;
3030

31-
import java.io.ByteArrayInputStream;
3231
import java.io.IOException;
3332
import java.io.InputStream;
3433
import java.io.InputStreamReader;
@@ -358,18 +357,6 @@ public void parseStyleElement(ApplContext ac, Reader reader,
358357
}
359358
}
360359

361-
/**
362-
* @param input the inputStream containing the style data
363-
* @param url the name of the file the style element was read in.
364-
* @throws IOException an IO error
365-
* @see #parseStyleElement(ApplContext, InputStream, String, String, URL, int)
366-
* @deprecated Replaced by parseStyleElement
367-
*/
368-
@Deprecated
369-
public void parseStyleElement(ApplContext ac, String input, URL url, int lineno) {
370-
parseStyleElement(ac, new StringReader(input), null, null, url, lineno);
371-
}
372-
373360
/**
374361
* Parse a style element. The Style element always comes from the user
375362
*
@@ -468,21 +455,6 @@ public void parseStyleAttribute(ApplContext ac, InputStream input, String id,
468455
}
469456
}
470457

471-
/**
472-
* @param input the inputStream containing the style data
473-
* @param id the uniq id
474-
* @param url the name of the file the style element was read in.
475-
* @throws IOException an IO error
476-
* @see #parseStyleAttribute(ApplContext, InputStream, String, URL, int)
477-
* @deprecated Replaced by parseStyleAttribute
478-
*/
479-
@Deprecated
480-
public void parseStyleAttribute(ApplContext ac, String input, String id,
481-
URL url, int lineno) {
482-
parseStyleAttribute(ac, new ByteArrayInputStream(input.getBytes()),
483-
id, url, lineno);
484-
}
485-
486458
public void setStyle(Class style) {
487459
cssFouffa.setStyle(style);
488460
}

0 commit comments

Comments
 (0)