diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-15 17:32:14 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-15 17:32:14 -0800 |
| commit | 8cba337cce19c71c4030f26fba2b00842172b99e (patch) | |
| tree | 9a651b32032f689b109617e24bda676df44f92d5 /src/libsyntax | |
| parent | d5e35e3e87bfc4dc0c7e0a33177f176be20ac8cb (diff) | |
| download | rust-8cba337cce19c71c4030f26fba2b00842172b99e.tar.gz rust-8cba337cce19c71c4030f26fba2b00842172b99e.zip | |
Remove CodeMap.lookup_byte_pos
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/codemap.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index cb427556e27..80dfb6651b9 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -259,11 +259,6 @@ pub impl CodeMap { return self.lookup_pos(pos, lookup); } - pub fn lookup_byte_pos(&self, +pos: BytePos) -> Loc<BytePos> { - pure fn lookup(pos: FilePos) -> uint { return pos.byte.to_uint(); } - return self.lookup_pos(pos, lookup); - } - pub fn lookup_char_pos_adj(&self, +pos: CharPos) -> {filename: ~str, line: uint, col: CharPos, file: Option<@FileMap>} { |
