From 9fb1624c5eb0a00b1c22ad048436cc2735f22277 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 29 Jul 2020 15:46:47 +0200 Subject: Remove dead code --- crates/ra_syntax/src/ast/generated/nodes.rs | 4 +--- xtask/src/ast_src.rs | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 01508ed88..df9b5cc2c 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -15,9 +15,7 @@ pub struct SourceFile { impl ast::ModuleItemOwner for SourceFile {} impl ast::AttrsOwner for SourceFile {} impl ast::DocCommentsOwner for SourceFile {} -impl SourceFile { - pub fn modules(&self) -> AstChildren { support::children(&self.syntax) } -} +impl SourceFile {} /// Function definition either with body or not. /// Includes all of its attributes and doc comments. /// diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 8d1ffc5b5..7f0db31bd 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -322,7 +322,6 @@ pub(crate) fn rust_ast() -> AstSrc { /// /// [Reference](https://doc.rust-lang.org/reference/crates-and-source-files.html) struct SourceFile: ModuleItemOwner, AttrsOwner, DocCommentsOwner { - modules: [Module], } /// Function definition either with body or not. -- cgit v1.2.3