From 26040d1b0015599881f3282a15dbc67adc9486f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 24 Oct 2018 20:32:16 +0000 Subject: [PATCH] style: Remove unused style constant. Also remove specified-value-only keywords, since those are handled only in Rust code and C++ doesn't need to know about them. Differential Revision: https://phabricator.services.mozilla.com/D9634 --- components/style/values/specified/text.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/style/values/specified/text.rs b/components/style/values/specified/text.rs index adeab96c984..6bd0af23eb2 100644 --- a/components/style/values/specified/text.rs +++ b/components/style/values/specified/text.rs @@ -488,12 +488,7 @@ impl TextAlign { /// Convert an enumerated value coming from Gecko to a `TextAlign`. #[cfg(feature = "gecko")] pub fn from_gecko_keyword(kw: u32) -> Self { - use gecko_bindings::structs::NS_STYLE_TEXT_ALIGN_MATCH_PARENT; - if kw == NS_STYLE_TEXT_ALIGN_MATCH_PARENT { - TextAlign::MatchParent - } else { - TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw)) - } + TextAlign::Keyword(TextAlignKeyword::from_gecko_keyword(kw)) } }