Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/display.rs')
| -rw-r--r-- | crates/syntax/src/display.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/syntax/src/display.rs b/crates/syntax/src/display.rs index 10f1c90138..d03e94d058 100644 --- a/crates/syntax/src/display.rs +++ b/crates/syntax/src/display.rs @@ -50,21 +50,6 @@ pub fn function_declaration(node: &ast::Fn) -> String { buf } -pub fn type_label(node: &ast::TypeAlias) -> String { - let mut s = String::new(); - if let Some(vis) = node.visibility() { - format_to!(s, "{} ", vis); - } - format_to!(s, "type "); - if let Some(name) = node.name() { - format_to!(s, "{}", name); - } else { - format_to!(s, "?"); - } - format_to!(s, ";"); - s -} - pub fn macro_label(node: &ast::Macro) -> String { let name = node.name(); let mut s = String::new(); |