Skip to content

Commit 915f149

Browse files
authored
Remove XmlState::Quiescent (#668)
Signed-off-by: Simon Wülker <[email protected]>
1 parent d242885 commit 915f149

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

xml5ever/src/tokenizer/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,6 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
667667

668668
debug!("processing in state {:?}", self.state);
669669
match self.state.get() {
670-
XmlState::Quiescent => {
671-
self.state.set(XmlState::Data);
672-
ProcessResult::Done
673-
},
674670
//§ data-state
675671
XmlState::Data => loop {
676672
match pop_except_from!(self, input, small_char_set!('\r' '&' '<')) {
@@ -1163,7 +1159,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
11631159
fn eof_step(&self) -> ProcessResult<Sink::Handle> {
11641160
debug!("processing EOF in state {:?}", self.state.get());
11651161
match self.state.get() {
1166-
XmlState::Data | XmlState::Quiescent => go!(self: eof),
1162+
XmlState::Data => go!(self: eof),
11671163
XmlState::CommentStart | XmlState::CommentLessThan | XmlState::CommentLessThanBang => {
11681164
go!(self: reconsume Comment)
11691165
},

xml5ever/src/tokenizer/states.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ pub enum XmlState {
153153
/// Indicates that the parser is currently parsing an ill-formed comment, such as
154154
/// `<? this is not what a comment should look like! >`.
155155
BogusComment,
156-
/// Interrupts the tokenizer for one single call to `step`.
157-
///
158-
/// It is unclear whether this is still necessary ([#649](https://github.com/servo/html5ever/issues/649)).
159-
Quiescent,
160156
}
161157

162158
/// Specifies how an attribute value is quoted, if at all.

0 commit comments

Comments
 (0)