From 901aaeaf683cec1c43d02b800e7beb605ac9c8c8 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 17 Aug 2016 20:05:34 +0200 Subject: [PATCH] Remove unused Keyframe::parse method --- components/style/keyframes.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/components/style/keyframes.rs b/components/style/keyframes.rs index a6e667e9282..a0000c6e177 100644 --- a/components/style/keyframes.rs +++ b/components/style/keyframes.rs @@ -73,27 +73,6 @@ pub struct Keyframe { pub declarations: Arc>, } -impl Keyframe { - pub fn parse(context: &ParserContext, input: &mut Parser) -> Result { - 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.