about summary refs log tree commit diff
path: root/src/libstd/priority_queue.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-04 15:48:36 -0700
committerbors <bors@rust-lang.org>2013-05-04 15:48:36 -0700
commitd74ac9ea03eb8faab72ce48b89dd47a14f45982a (patch)
tree9154d7c17af39c1e817bf27652d6a9d45b4009b5 /src/libstd/priority_queue.rs
parentb872900a5b4adb53b7d74d45a3138083b22940d6 (diff)
parent8081e8debf63726865e869aaacbd040755285a51 (diff)
downloadrust-d74ac9ea03eb8faab72ce48b89dd47a14f45982a.tar.gz
rust-d74ac9ea03eb8faab72ce48b89dd47a14f45982a.zip
auto merge of #6240 : brson/rust/snapshots, r=brson
Diffstat (limited to 'src/libstd/priority_queue.rs')
-rw-r--r--src/libstd/priority_queue.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs
index 47af3576c90..33fe1cfff8e 100644
--- a/src/libstd/priority_queue.rs
+++ b/src/libstd/priority_queue.rs
@@ -45,25 +45,9 @@ impl<T:Ord> Mutable for PriorityQueue<T> {
 
 pub impl <T:Ord> PriorityQueue<T> {
     /// Returns the greatest item in the queue - fails if empty
-    #[cfg(stage0)]
-    fn top(&self) -> &'self T { &self.data[0] }
-
-    /// Returns the greatest item in the queue - fails if empty
-    #[cfg(stage1)]
-    #[cfg(stage2)]
-    #[cfg(stage3)]
     fn top<'a>(&'a self) -> &'a T { &self.data[0] }
 
     /// Returns the greatest item in the queue - None if empty
-    #[cfg(stage0)]
-    fn maybe_top(&self) -> Option<&'self T> {
-        if self.is_empty() { None } else { Some(self.top()) }
-    }
-
-    /// Returns the greatest item in the queue - None if empty
-    #[cfg(stage1)]
-    #[cfg(stage2)]
-    #[cfg(stage3)]
     fn maybe_top<'a>(&'a self) -> Option<&'a T> {
         if self.is_empty() { None } else { Some(self.top()) }
     }