1
Fork 0

Revert "Register snapshots"

This reverts commit d6d12d90ff.
This commit is contained in:
Brian Anderson 2012-12-17 16:26:44 -08:00
parent d6d12d90ff
commit 68998724c6
9 changed files with 55 additions and 8 deletions

View file

@ -80,10 +80,20 @@ impl <T: Ord> PriorityQueue<T> {
}
/// Consume the PriorityQueue and return the underlying vector
#[cfg(stage0)]
pure fn to_vec(self) -> ~[T] { fail }
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v }
/// Consume the PriorityQueue and return a vector in sorted
/// (ascending) order
#[cfg(stage0)]
pure fn to_sorted_vec(self) -> ~[T] { fail }
#[cfg(stage1)]
#[cfg(stage2)]
#[cfg(stage3)]
pure fn to_sorted_vec(self) -> ~[T] {
let mut q = self;
let mut end = q.len();