Skip to content

Commit 1424ac5

Browse files
committed
Remove unused code: ComponentValueIterator.from_parser()
1 parent 4cdcd58 commit 1424ac5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

parser.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,15 @@ use tokenizer::*;
2020

2121
// TODO: Use a trait?
2222
enum ComponentValueIterator {
23-
ParserIter(~Parser),
23+
ParserIter(Parser),
2424
VectorIter(vec::ConsumeIterator<(ComponentValue, SourceLocation)>),
2525
}
2626

2727

2828
impl ComponentValueIterator {
2929
#[inline]
3030
pub fn from_str(input: ~str) -> ComponentValueIterator {
31-
ComponentValueIterator::from_parser(~Parser::from_str(input))
32-
}
33-
34-
#[inline]
35-
pub fn from_parser(parser: ~Parser) -> ComponentValueIterator {
36-
ParserIter(parser)
31+
ParserIter(Parser::from_str(input))
3732
}
3833

3934
#[inline]
@@ -54,7 +49,7 @@ impl ComponentValueIterator {
5449
impl Iterator<(ComponentValue, SourceLocation)> for ComponentValueIterator {
5550
fn next(&mut self) -> Option<(ComponentValue, SourceLocation)> {
5651
match self {
57-
&ParserIter(ref mut parser) => next_component_value(*parser),
52+
&ParserIter(ref mut parser) => next_component_value(parser),
5853
&VectorIter(ref mut iter) => iter.next()
5954
}
6055
}

0 commit comments

Comments
 (0)