diff options
author | Edwin Cheng <[email protected]> | 2020-04-09 05:28:58 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-04-09 06:04:01 +0100 |
commit | 836384393b3cb2dca003f4a2caf47e94f283f48c (patch) | |
tree | c427803762cb400420fa8c95ff329fac3425a991 | |
parent | 6af1015f74ee8395ea7fe8339d8748089f05e3e4 (diff) |
Remove unused func
-rw-r--r-- | crates/ra_proc_macro_srv/src/rustc_server.rs | 4 |
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 | } |