diff --git a/src/template_parser.rs b/src/template_parser.rs index 6a6b2ab1d..85d06abc8 100644 --- a/src/template_parser.rs +++ b/src/template_parser.rs @@ -56,14 +56,6 @@ fn parse_string_literal(pair: Pair) -> String { result } -struct StringShort; - -impl TemplateProperty for StringShort { - fn extract(&self, context: &String) -> String { - context.chars().take(12).collect() - } -} - struct StringFirstLine; impl TemplateProperty for StringFirstLine { @@ -188,7 +180,6 @@ fn parse_string_method<'a>(method: Pair) -> PropertyAndLabels<'a, String> // TODO: validate arguments let this_function = match name.as_str() { - "short" => Property::String(Box::new(StringShort)), "first_line" => Property::String(Box::new(StringFirstLine)), name => panic!("no such string method: {name}"), };