1
Fork 0

Register snapshots

This commit is contained in:
Brian Anderson 2013-03-29 11:18:35 -07:00
parent 706ed6dd53
commit 518c295a03
5 changed files with 8 additions and 88 deletions

View file

@ -854,19 +854,6 @@ impl<'self> serialize::Decoder for Decoder<'self> {
f()
}
#[cfg(stage0)]
fn read_enum_variant<T>(&self, f: &fn(uint) -> T) -> T {
debug!("read_enum_variant()");
let idx = match *self.peek() {
Null => 0,
_ => 1,
};
f(idx)
}
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
fn read_enum_variant<T>(&self, names: &[&str], f: &fn(uint) -> T) -> T {
debug!("read_enum_variant(names=%?)", names);
let name = match *self.peek() {