aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-linemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-linemap.h')
-rw-r--r--gcc/rust/rust-linemap.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/rust/rust-linemap.h b/gcc/rust/rust-linemap.h
index ae8f6f6..12fdb9f 100644
--- a/gcc/rust/rust-linemap.h
+++ b/gcc/rust/rust-linemap.h
@@ -66,15 +66,6 @@ public:
// unknown locations.
virtual std::string to_string (Location) = 0;
- // Return the file name for a given location.
- virtual std::string location_file (Location) = 0;
-
- // Return the line number for a given location.
- virtual int location_line (Location) = 0;
-
- // Return the column number for a given location.
- virtual int location_column (Location) = 0;
-
protected:
// The single existing instance of Linemap.
static Linemap *instance_;
@@ -96,26 +87,6 @@ public:
rust_assert (Linemap::instance_ != NULL);
return Linemap::instance_->to_string (loc);
}
-
- // Return the file name of a location.
- static std::string location_to_file (Location loc)
- {
- rust_assert (Linemap::instance_ != NULL);
- return Linemap::instance_->location_file (loc);
- }
-
- // Return line number of a location.
- static int location_to_line (Location loc)
- {
- rust_assert (Linemap::instance_ != NULL);
- return Linemap::instance_->location_line (loc);
- }
-
- static int location_to_column (Location loc)
- {
- rust_assert (Linemap::instance_ != NULL);
- return Linemap::instance_->location_column (loc);
- }
};
#endif // !defined(RUST_LINEMAP_H)