aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-23 22:18:18 +0100
committerAleksey Kladov <[email protected]>2020-04-23 22:18:18 +0100
commitdd59237e0ce48adc0f5f459c73a5687ffa748a2a (patch)
treee55fa2dcf9da27772aa2573e9b83b033221baebf
parent27dd0086ea0642cc36e2a388dcfd7e5f6a466ac5 (diff)
minor
-rw-r--r--crates/ra_syntax/src/ptr.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ptr.rs b/crates/ra_syntax/src/ptr.rs
index 8d9812d24..ecbfffcf4 100644
--- a/crates/ra_syntax/src/ptr.rs
+++ b/crates/ra_syntax/src/ptr.rs
@@ -30,10 +30,6 @@ impl SyntaxNodePtr {
30 .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) 30 .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self))
31 } 31 }
32 32
33 // pub fn range(&self) -> TextRange {
34 // self.range
35 // }
36
37 pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> { 33 pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> {
38 if !N::can_cast(self.kind) { 34 if !N::can_cast(self.kind) {
39 return None; 35 return None;