dead code

This commit is contained in:
Aleksey Kladov 2021-12-27 21:35:36 +03:00
parent 55f1564101
commit 45bba40079

View file

@ -187,13 +187,6 @@ impl ast::Expr {
}
}
impl ast::Attr {
/// Returns `text`, parsed as an attribute, but only if it has no errors.
pub fn parse(text: &str) -> Result<Self, ()> {
parsing::parse_text_as(text, parser::ParserEntryPoint::Attr)
}
}
/// Matches a `SyntaxNode` against an `ast` type.
///
/// # Example: