[librsvg: 17/43] Remove unused parse_input()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 17/43] Remove unused parse_input()
- Date: Sat, 21 Dec 2019 02:30:55 +0000 (UTC)
commit 6d660a321c0c7205d614b1582fa0d52518a17ea0
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Dec 20 12:02:38 2019 -0600
Remove unused parse_input()
rsvg_internals/src/properties.rs | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/rsvg_internals/src/properties.rs b/rsvg_internals/src/properties.rs
index 118eeb9b..8bb675b3 100644
--- a/rsvg_internals/src/properties.rs
+++ b/rsvg_internals/src/properties.rs
@@ -675,21 +675,6 @@ impl SpecifiedValues {
}
}
-// Parses the value for the type `T` of the property out of the Parser, including `inherit` values.
-fn parse_input<T>(input: &mut Parser) -> Result<SpecifiedValue<T>, ValueErrorKind>
-where
- T: Property<ComputedValues> + Clone + Default + Parse,
-{
- if input
- .try_parse(|p| p.expect_ident_matching("inherit"))
- .is_ok()
- {
- Ok(SpecifiedValue::Inherit)
- } else {
- Parse::parse(input).map(SpecifiedValue::Specified)
- }
-}
-
// Parses the value for the type `T` of the property out of the Parser, including `inherit` values.
fn parse_input_to_parse_error<'i, T>(
input: &mut Parser<'i, '_>,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]