Skip to content

Commit 38b9740

Browse files
committed
Remove unused get_snippet function from codemap
1 parent b22f941 commit 38b9740

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libsyntax/codemap.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,6 @@ pub impl CodeMap {
215215
return str::slice(*begin.fm.src, begin.pos, end.pos);
216216
}
217217

218-
pub fn get_snippet(@self, fidx: uint, lo: uint, hi: uint) -> ~str
219-
{
220-
let fm = self.files[fidx];
221-
return str::slice(*fm.src, lo, hi)
222-
}
223-
224218
pub fn get_filemap(@self, filename: ~str) -> @filemap {
225219
for self.files.each |fm| { if fm.name == filename { return *fm; } }
226220
//XXjdm the following triggers a mismatched type bug

0 commit comments

Comments
 (0)