mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Trivially remove some dead code.
Differential Revision: https://phabricator.services.mozilla.com/D26154
This commit is contained in:
parent
79fc59c75f
commit
ef0b6bb225
3 changed files with 0 additions and 16 deletions
|
@ -1204,13 +1204,9 @@ impl Clone for ${style_struct.gecko_struct_name} {
|
||||||
|
|
||||||
# Types used with predefined_type()-defined properties that we can auto-generate.
|
# Types used with predefined_type()-defined properties that we can auto-generate.
|
||||||
predefined_types = {
|
predefined_types = {
|
||||||
"length::LengthOrAuto": impl_style_coord,
|
|
||||||
"length::LengthOrNormal": impl_style_coord,
|
|
||||||
"length::NonNegativeLengthOrAuto": impl_style_coord,
|
"length::NonNegativeLengthOrAuto": impl_style_coord,
|
||||||
"length::NonNegativeLengthPercentageOrNormal": impl_style_coord,
|
"length::NonNegativeLengthPercentageOrNormal": impl_style_coord,
|
||||||
"Length": impl_absolute_length,
|
"Length": impl_absolute_length,
|
||||||
"LengthOrNormal": impl_style_coord,
|
|
||||||
"LengthPercentageOrAuto": impl_style_coord,
|
|
||||||
"MozScriptMinSize": impl_absolute_length,
|
"MozScriptMinSize": impl_absolute_length,
|
||||||
"RGBAColor": impl_rgba_color,
|
"RGBAColor": impl_rgba_color,
|
||||||
"SVGLength": impl_svg_length,
|
"SVGLength": impl_svg_length,
|
||||||
|
|
|
@ -710,9 +710,6 @@ pub type NonNegativeLengthOrAuto = generics::GenericLengthPercentageOrAuto<NonNe
|
||||||
/// Either a computed `<length>` or a `<number>` value.
|
/// Either a computed `<length>` or a `<number>` value.
|
||||||
pub type LengthOrNumber = GenericLengthOrNumber<Length, Number>;
|
pub type LengthOrNumber = GenericLengthOrNumber<Length, Number>;
|
||||||
|
|
||||||
/// Either a computed `<length>` or the `normal` keyword.
|
|
||||||
pub type LengthOrNormal = Either<Length, Normal>;
|
|
||||||
|
|
||||||
/// A wrapper of Length, whose value must be >= 0.
|
/// A wrapper of Length, whose value must be >= 0.
|
||||||
pub type NonNegativeLength = NonNegative<Length>;
|
pub type NonNegativeLength = NonNegative<Length>;
|
||||||
|
|
||||||
|
@ -783,9 +780,6 @@ impl From<NonNegativeLength> for Au {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Either a computed NonNegativeLength or the `normal` keyword.
|
|
||||||
pub type NonNegativeLengthOrNormal = Either<NonNegativeLength, Normal>;
|
|
||||||
|
|
||||||
/// Either a computed NonNegativeLengthPercentage or the `normal` keyword.
|
/// Either a computed NonNegativeLengthPercentage or the `normal` keyword.
|
||||||
pub type NonNegativeLengthPercentageOrNormal = Either<NonNegativeLengthPercentage, Normal>;
|
pub type NonNegativeLengthPercentageOrNormal = Either<NonNegativeLengthPercentage, Normal>;
|
||||||
|
|
||||||
|
|
|
@ -956,9 +956,6 @@ impl NonNegativeLengthPercentageOrAuto {
|
||||||
/// A wrapper of LengthPercentage, whose value must be >= 0.
|
/// A wrapper of LengthPercentage, whose value must be >= 0.
|
||||||
pub type NonNegativeLengthPercentage = NonNegative<LengthPercentage>;
|
pub type NonNegativeLengthPercentage = NonNegative<LengthPercentage>;
|
||||||
|
|
||||||
/// Either a computed NonNegativeLength or the `normal` keyword.
|
|
||||||
pub type NonNegativeLengthOrNormal = Either<NonNegativeLength, Normal>;
|
|
||||||
|
|
||||||
/// Either a NonNegativeLengthPercentage or the `normal` keyword.
|
/// Either a NonNegativeLengthPercentage or the `normal` keyword.
|
||||||
pub type NonNegativeLengthPercentageOrNormal = Either<NonNegativeLengthPercentage, Normal>;
|
pub type NonNegativeLengthPercentageOrNormal = Either<NonNegativeLengthPercentage, Normal>;
|
||||||
|
|
||||||
|
@ -998,9 +995,6 @@ impl NonNegativeLengthPercentage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Either a `<length>` or the `normal` keyword.
|
|
||||||
pub type LengthOrNormal = Either<Length, Normal>;
|
|
||||||
|
|
||||||
/// Either a `<length>` or the `auto` keyword.
|
/// Either a `<length>` or the `auto` keyword.
|
||||||
///
|
///
|
||||||
/// Note that we use LengthPercentage just for convenience, since it pretty much
|
/// Note that we use LengthPercentage just for convenience, since it pretty much
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue