]> git.lizzy.rs Git - rust.git/commitdiff
cleanup: remove hir_path_str
authorljedrz <ljedrz@gmail.com>
Thu, 7 Feb 2019 11:35:40 +0000 (12:35 +0100)
committerljedrz <ljedrz@gmail.com>
Sat, 9 Feb 2019 15:37:17 +0000 (16:37 +0100)
src/librustc/ty/item_path.rs

index df09cf629d4071ba41265d9eab3e065cfd744501..388eafb826fb153a0a26cfb2eeefcdd3b6f17c4d 100644 (file)
@@ -76,11 +76,6 @@ pub fn node_path_str(self, id: ast::NodeId) -> String {
         self.item_path_str(self.hir().local_def_id(id))
     }
 
-    // FIXME(@ljedrz): replace the NodeId variant
-    pub fn hir_path_str(self, id: hir::HirId) -> String {
-        self.item_path_str(self.hir().local_def_id_from_hir_id(id))
-    }
-
     /// Returns a string identifying this def-id. This string is
     /// suitable for user output. It always begins with a crate identifier.
     pub fn absolute_item_path_str(self, def_id: DefId) -> String {