Skip to content

Commit

Permalink
Remove unused Keyframe::parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 20, 2016
1 parent 24fbb26 commit 901aaea
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions components/style/keyframes.rs
Expand Up @@ -73,27 +73,6 @@ pub struct Keyframe {
pub declarations: Arc<Vec<PropertyDeclaration>>,
}

impl Keyframe {
pub fn parse(context: &ParserContext, input: &mut Parser) -> Result<Keyframe, ()> {
let percentages = try!(input.parse_until_before(Delimiter::CurlyBracketBlock, |input| {
input.parse_comma_separated(|input| KeyframePercentage::parse(input))
}));
let selector = KeyframeSelector(percentages);

try!(input.expect_curly_bracket_block());

let declarations = input.parse_nested_block(|input| {
Ok(parse_property_declaration_list(context, input))
}).unwrap();

// NB: Important declarations are explicitely ignored in the spec.
Ok(Keyframe {
selector: selector,
declarations: declarations.normal,
})
}
}

/// A keyframes step value. This can be a synthetised keyframes animation, that
/// is, one autogenerated from the current computed values, or a list of
/// declarations to apply.
Expand Down

0 comments on commit 901aaea

Please sign in to comment.