aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_proc_macro_srv
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-04-09 05:28:58 +0100
committerEdwin Cheng <[email protected]>2020-04-09 06:04:01 +0100
commit836384393b3cb2dca003f4a2caf47e94f283f48c (patch)
treec427803762cb400420fa8c95ff329fac3425a991 /crates/ra_proc_macro_srv
parent6af1015f74ee8395ea7fe8339d8748089f05e3e4 (diff)
Remove unused func
Diffstat (limited to 'crates/ra_proc_macro_srv')
-rw-r--r--crates/ra_proc_macro_srv/src/rustc_server.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_proc_macro_srv/src/rustc_server.rs b/crates/ra_proc_macro_srv/src/rustc_server.rs
index 76e6a2752..92d1fd989 100644
--- a/crates/ra_proc_macro_srv/src/rustc_server.rs
+++ b/crates/ra_proc_macro_srv/src/rustc_server.rs
@@ -33,9 +33,7 @@ impl TokenStream {
33 pub fn new() -> Self { 33 pub fn new() -> Self {
34 TokenStream { subtree: Default::default() } 34 TokenStream { subtree: Default::default() }
35 } 35 }
36 pub fn with_subtree(subtree: tt::Subtree) -> Self { 36
37 TokenStream { subtree }
38 }
39 pub fn is_empty(&self) -> bool { 37 pub fn is_empty(&self) -> bool {
40 self.subtree.token_trees.is_empty() 38 self.subtree.token_trees.is_empty()
41 } 39 }