diff -r 77d56a21c3ab -r 436fe75092b7 lemon/concepts/heap.h --- a/lemon/concepts/heap.h Sat Jul 12 10:21:44 2008 +0200 +++ b/lemon/concepts/heap.h Sat Jul 12 09:45:11 2008 +0100 @@ -181,12 +181,10 @@ Item item; Prio prio; - State state; item=Item(); prio=Prio(); ignore_unused_variable_warning(item); ignore_unused_variable_warning(prio); - ignore_unused_variable_warning(state); OwnItem own_item; OwnPrio own_prio; @@ -203,7 +201,9 @@ ignore_unused_variable_warning(heap2); int s = heap.size(); + ignore_unused_variable_warning(s); bool e = heap.empty(); + ignore_unused_variable_warning(e); prio = heap.prio(); item = heap.top(); @@ -227,14 +227,9 @@ heap.erase(own_item); heap.clear(); - state = heap.state(item); - heap.state(item, state); - state = heap.state(own_item); + own_state = heap.state(own_item); heap.state(own_item, own_state); - state = _Heap::PRE_HEAP; - state = _Heap::IN_HEAP; - state = _Heap::POST_HEAP; own_state = _Heap::PRE_HEAP; own_state = _Heap::IN_HEAP; own_state = _Heap::POST_HEAP;