diff options
| author | Graydon Hoare <graydon@pobox.com> | 2012-11-30 12:20:59 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@pobox.com> | 2012-11-30 12:20:59 -0800 |
| commit | f89d4ac8306dbe597f0bfef7cf92bea372eece1d (patch) | |
| tree | 2f40e7042228c2ce0874f972c92d82a89cf15985 /src/libsyntax/codemap.rs | |
| parent | 946427b562d7ece5fc85c5067051c4aec73d5aff (diff) | |
| parent | d783f4d7bb543f33aaf0fc8a04c6d5b2493e8268 (diff) | |
| download | rust-f89d4ac8306dbe597f0bfef7cf92bea372eece1d.tar.gz rust-f89d4ac8306dbe597f0bfef7cf92bea372eece1d.zip | |
Merge pull request #4081 from graydon/iterbytes-and-workcache
libs: Remove transitionary material on iter_bytes, add workcache to buil...
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 8126f1d7200..693597eb840 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -72,15 +72,6 @@ impl BytePos: Num { static pure fn from_int(+n: int) -> BytePos { BytePos(n as uint) } } -#[cfg(stage0)] -impl BytePos: to_bytes::IterBytes { - pure fn iter_bytes(+lsb0: bool, f: to_bytes::Cb) { - (*self).iter_bytes(lsb0, f) - } -} - -#[cfg(stage1)] -#[cfg(stage2)] impl BytePos: to_bytes::IterBytes { pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) { (**self).iter_bytes(lsb0, f) @@ -127,14 +118,6 @@ impl CharPos: Num { static pure fn from_int(+n: int) -> CharPos { CharPos(n as uint) } } -#[cfg(stage0)] -impl CharPos: to_bytes::IterBytes { - pure fn iter_bytes(+lsb0: bool, f: to_bytes::Cb) { - (*self).iter_bytes(lsb0, f) - } -} -#[cfg(stage1)] -#[cfg(stage2)] impl CharPos: to_bytes::IterBytes { pure fn iter_bytes(&self, +lsb0: bool, f: to_bytes::Cb) { (**self).iter_bytes(lsb0, f) |
