Unnamed repository; edit this file 'description' to name the repository.
dead code
Aleksey Kladov 2021-12-28
parent 55f1564 · commit 45bba40
-rw-r--r--crates/syntax/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs
index 63a14ec913..1fb3dc6a65 100644
--- a/crates/syntax/src/lib.rs
+++ b/crates/syntax/src/lib.rs
@@ -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: