diff options
| author | bors <bors@rust-lang.org> | 2013-05-04 15:48:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-04 15:48:36 -0700 |
| commit | d74ac9ea03eb8faab72ce48b89dd47a14f45982a (patch) | |
| tree | 9154d7c17af39c1e817bf27652d6a9d45b4009b5 /src/libstd/priority_queue.rs | |
| parent | b872900a5b4adb53b7d74d45a3138083b22940d6 (diff) | |
| parent | 8081e8debf63726865e869aaacbd040755285a51 (diff) | |
| download | rust-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.rs | 16 |
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()) } } |
