From ef0b6bb22570f9ae51bac92a7b65e4cfc8885b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 4 Apr 2019 17:39:15 +0000 Subject: [PATCH] style: Trivially remove some dead code. Differential Revision: https://phabricator.services.mozilla.com/D26154 --- components/style/properties/gecko.mako.rs | 4 ---- components/style/values/computed/length.rs | 6 ------ components/style/values/specified/length.rs | 6 ------ 3 files changed, 16 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 0eaab919110..2e2a55a16bb 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1204,13 +1204,9 @@ impl Clone for ${style_struct.gecko_struct_name} { # Types used with predefined_type()-defined properties that we can auto-generate. predefined_types = { - "length::LengthOrAuto": impl_style_coord, - "length::LengthOrNormal": impl_style_coord, "length::NonNegativeLengthOrAuto": impl_style_coord, "length::NonNegativeLengthPercentageOrNormal": impl_style_coord, "Length": impl_absolute_length, - "LengthOrNormal": impl_style_coord, - "LengthPercentageOrAuto": impl_style_coord, "MozScriptMinSize": impl_absolute_length, "RGBAColor": impl_rgba_color, "SVGLength": impl_svg_length, diff --git a/components/style/values/computed/length.rs b/components/style/values/computed/length.rs index 0587dc46791..0fd624b5c55 100644 --- a/components/style/values/computed/length.rs +++ b/components/style/values/computed/length.rs @@ -710,9 +710,6 @@ pub type NonNegativeLengthOrAuto = generics::GenericLengthPercentageOrAuto` or a `` value. pub type LengthOrNumber = GenericLengthOrNumber; -/// Either a computed `` or the `normal` keyword. -pub type LengthOrNormal = Either; - /// A wrapper of Length, whose value must be >= 0. pub type NonNegativeLength = NonNegative; @@ -783,9 +780,6 @@ impl From for Au { } } -/// Either a computed NonNegativeLength or the `normal` keyword. -pub type NonNegativeLengthOrNormal = Either; - /// Either a computed NonNegativeLengthPercentage or the `normal` keyword. pub type NonNegativeLengthPercentageOrNormal = Either; diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs index fcbae0aa2d6..8d29fe53a00 100644 --- a/components/style/values/specified/length.rs +++ b/components/style/values/specified/length.rs @@ -956,9 +956,6 @@ impl NonNegativeLengthPercentageOrAuto { /// A wrapper of LengthPercentage, whose value must be >= 0. pub type NonNegativeLengthPercentage = NonNegative; -/// Either a computed NonNegativeLength or the `normal` keyword. -pub type NonNegativeLengthOrNormal = Either; - /// Either a NonNegativeLengthPercentage or the `normal` keyword. pub type NonNegativeLengthPercentageOrNormal = Either; @@ -998,9 +995,6 @@ impl NonNegativeLengthPercentage { } } -/// Either a `` or the `normal` keyword. -pub type LengthOrNormal = Either; - /// Either a `` or the `auto` keyword. /// /// Note that we use LengthPercentage just for convenience, since it pretty much