From 89f0eedcfb48bb3293d529fc403465bdda97ae53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 11 Mar 2017 23:57:39 +0100 Subject: [PATCH] Simplify some -moz-fixed handling code. This was introduced in #15916, but most of it is actually unreachable. --- components/style/properties/longhand/font.mako.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/style/properties/longhand/font.mako.rs b/components/style/properties/longhand/font.mako.rs index a113186ca07..a62da429065 100644 --- a/components/style/properties/longhand/font.mako.rs +++ b/components/style/properties/longhand/font.mako.rs @@ -57,9 +57,6 @@ atom!("sans-serif") | atom!("cursive") | atom!("fantasy") | - % if product == "gecko": - atom!("-moz-fixed") | - % endif atom!("monospace") => { return FontFamily::Generic(input) } @@ -70,9 +67,6 @@ "sans-serif" => return FontFamily::Generic(atom!("sans-serif")), "cursive" => return FontFamily::Generic(atom!("cursive")), "fantasy" => return FontFamily::Generic(atom!("fantasy")), - % if product == "gecko": - "-moz-fixed" => return FontFamily::Generic(atom!("-moz-fixed")), - % endif "monospace" => return FontFamily::Generic(atom!("monospace")), _ => {} } @@ -150,10 +144,9 @@ if name == &atom!("-moz-fixed") { return write!(dest, "monospace"); } - write!(dest, "{}", name) - % else: - write!(dest, "{}", name) % endif + + write!(dest, "{}", name) }, } }