Skip to content

Commit af9843b

Browse files
committed
---
yaml --- r: 36336 b: refs/heads/try2 c: e621e68 h: refs/heads/master v: v3
1 parent a925f85 commit af9843b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 7c72fd89f103a1629525b87d98b3adb4d1e6bd14
8+
refs/heads/try2: e621e68c60d02bb33a2d808071f3f07674db871c
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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)