1
Fork 0

librustc: Remove all uses of static from functions. rs=destatic

This commit is contained in:
Patrick Walton 2013-03-21 19:07:54 -07:00
parent 1616ffd0c2
commit 4634f7edae
79 changed files with 281 additions and 286 deletions

View file

@ -118,10 +118,10 @@ pub impl <T:Ord> PriorityQueue<T> {
}
/// Create an empty PriorityQueue
static pure fn new() -> PriorityQueue<T> { PriorityQueue{data: ~[],} }
pure fn new() -> PriorityQueue<T> { PriorityQueue{data: ~[],} }
/// Create a PriorityQueue from a vector (heapify)
static pure fn from_vec(xs: ~[T]) -> PriorityQueue<T> {
pure fn from_vec(xs: ~[T]) -> PriorityQueue<T> {
let mut q = PriorityQueue{data: xs,};
let mut n = q.len() / 2;
while n > 0 {