diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-12 18:36:03 -0800 | 
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-12 18:36:03 -0800 | 
| commit | 38b9740668f596989a2a714e556d59d5b49112dc (patch) | |
| tree | 9651a8e4e12b2cd6e99fabcab43e41e0cfb390b9 /src | |
| parent | b22f94148720e1ece7e16afe92f91d998ac9af34 (diff) | |
| download | rust-38b9740668f596989a2a714e556d59d5b49112dc.tar.gz rust-38b9740668f596989a2a714e556d59d5b49112dc.zip | |
Remove unused get_snippet function from codemap
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax/codemap.rs | 6 | 
1 files changed, 0 insertions, 6 deletions
| diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index bac1c5fcf6f..4f6c16a39d7 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -215,12 +215,6 @@ pub impl CodeMap { return str::slice(*begin.fm.src, begin.pos, end.pos); } - pub fn get_snippet(@self, fidx: uint, lo: uint, hi: uint) -> ~str - { - let fm = self.files[fidx]; - return str::slice(*fm.src, lo, hi) - } - pub fn get_filemap(@self, filename: ~str) -> @filemap { for self.files.each |fm| { if fm.name == filename { return *fm; } } //XXjdm the following triggers a mismatched type bug | 
