Remove unused get_snippet function from codemap

This commit is contained in:
Brian Anderson 2012-11-12 18:36:03 -08:00
parent b22f941487
commit 38b9740668

View File

@ -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