librustc: Remove all uses of static
from functions. rs=destatic
This commit is contained in:
parent
1616ffd0c2
commit
4634f7edae
79 changed files with 281 additions and 286 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue