diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-12-27 21:35:36 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-12-28 17:00:55 +0300 |
| commit | 45bba40079f85471414b4cd55b42a81d67df8b5f (patch) | |
| tree | a0772c748ce285b1fcce864722193521849b2bc7 | |
| parent | 55f15641011b5d1211d6f86ce77a60f05b02a25b (diff) | |
| download | rust-45bba40079f85471414b4cd55b42a81d67df8b5f.tar.gz rust-45bba40079f85471414b4cd55b42a81d67df8b5f.zip | |
dead code
| -rw-r--r-- | crates/syntax/src/lib.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs index 63a14ec9134..1fb3dc6a65e 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: |
