Skip to content

Commit e621e68

Browse files
committed
Remove unused MultiByteChar.sum field from codemap
1 parent 7c72fd8 commit e621e68

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/libsyntax/codemap.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ pub struct MultiByteChar {
193193
pos: BytePos,
194194
/// The number of bytes, >=2
195195
bytes: uint,
196-
/// The complete number of 'extra' bytes through this character in the
197-
/// FileMap
198-
sum: uint
199196
}
200197

201198
/// A single source in the CodeMap
@@ -233,16 +230,9 @@ pub impl FileMap {
233230

234231
pub fn record_multibyte_char(&self, pos: BytePos, bytes: uint) {
235232
assert bytes >=2 && bytes <= 4;
236-
let sum = if self.multibyte_chars.len() > 0 {
237-
self.multibyte_chars.last().sum
238-
} else {
239-
0
240-
};
241-
let sum = sum + bytes;
242233
let mbc = MultiByteChar {
243234
pos: pos,
244235
bytes: bytes,
245-
sum: sum
246236
};
247237
self.multibyte_chars.push(mbc);
248238
}

0 commit comments

Comments
 (0)