diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-16 15:52:33 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-16 15:52:33 -0800 |
| commit | e621e68c60d02bb33a2d808071f3f07674db871c (patch) | |
| tree | 19742e782d52e0efa7843f5dc39fa9868721fa7f /src/libsyntax | |
| parent | 7c72fd89f103a1629525b87d98b3adb4d1e6bd14 (diff) | |
| download | rust-e621e68c60d02bb33a2d808071f3f07674db871c.tar.gz rust-e621e68c60d02bb33a2d808071f3f07674db871c.zip | |
Remove unused MultiByteChar.sum field from codemap
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/codemap.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 63750e6cd65..d291d9545eb 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -193,9 +193,6 @@ pub struct MultiByteChar { pos: BytePos, /// The number of bytes, >=2 bytes: uint, - /// The complete number of 'extra' bytes through this character in the - /// FileMap - sum: uint } /// A single source in the CodeMap @@ -233,16 +230,9 @@ pub impl FileMap { pub fn record_multibyte_char(&self, pos: BytePos, bytes: uint) { assert bytes >=2 && bytes <= 4; - let sum = if self.multibyte_chars.len() > 0 { - self.multibyte_chars.last().sum - } else { - 0 - }; - let sum = sum + bytes; let mbc = MultiByteChar { pos: pos, bytes: bytes, - sum: sum }; self.multibyte_chars.push(mbc); } |
