]> git.lizzy.rs Git - rust.git/commitdiff
Remove dead code
authorAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 18 Dec 2019 16:52:52 +0000 (17:52 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Wed, 18 Dec 2019 16:52:52 +0000 (17:52 +0100)
crates/ra_hir_def/src/path.rs

index 3fb0955d18a0ce8f65f58a469490d408313b8c9d..7302cf0f187f6a436f0ee8873a540593052c9dfe 100644 (file)
@@ -130,11 +130,6 @@ pub(crate) fn from_name_ref(name_ref: &ast::NameRef) -> Path {
         Path { type_anchor: None, mod_path: name_ref.as_name().into(), generic_args: vec![None] }
     }
 
-    /// `true` if this path is just a standalone `self`
-    pub fn is_self(&self) -> bool {
-        self.mod_path.is_self()
-    }
-
     pub fn kind(&self) -> &PathKind {
         &self.mod_path.kind
     }