Branch: Tag:

2009-08-11

2009-08-11 09:50:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Marked compat functions top() and size() as deprecated.

Rev: lib/modules/ADT.pmod/Heap.pike:1.13

121:   // compat   //! Removes and returns the item on top of the heap,   //! which also is the smallest value in the heap. - mixed top() { return pop(); } + __deprecated__ mixed top() { return pop(); }      // compat   //! Returns the number of elements in the heap. - int size() { return _sizeof(); } + __deprecated__ int size() { return _sizeof(); }      //! Returns the item on top of the heap (which is also the smallest value   //! in the heap) without removing it.