lemon/concepts/heap.h
changeset 203 215bfc30b14f
parent 113 18a7ee8fa56e
child 209 765619b7cbb2
     1.1 --- a/lemon/concepts/heap.h	Thu Jul 10 16:13:50 2008 +0200
     1.2 +++ b/lemon/concepts/heap.h	Fri Jul 11 15:01:49 2008 +0200
     1.3 @@ -181,12 +181,10 @@
     1.4  
     1.5  	  Item item;
     1.6  	  Prio prio;
     1.7 -	  State state;
     1.8  	  item=Item();
     1.9  	  prio=Prio();
    1.10  	  ignore_unused_variable_warning(item);
    1.11  	  ignore_unused_variable_warning(prio);
    1.12 -	  ignore_unused_variable_warning(state);
    1.13  
    1.14  	  OwnItem own_item;
    1.15  	  OwnPrio own_prio;
    1.16 @@ -203,7 +201,9 @@
    1.17  	  ignore_unused_variable_warning(heap2);
    1.18  	  
    1.19  	  int s = heap.size();
    1.20 +	  ignore_unused_variable_warning(s);
    1.21  	  bool e = heap.empty();
    1.22 +	  ignore_unused_variable_warning(e);
    1.23  
    1.24  	  prio = heap.prio();
    1.25  	  item = heap.top();
    1.26 @@ -227,14 +227,9 @@
    1.27  	  heap.erase(own_item);
    1.28  	  heap.clear();
    1.29  
    1.30 -	  state = heap.state(item);
    1.31 -	  heap.state(item, state);
    1.32 -	  state = heap.state(own_item);
    1.33 +	  own_state = heap.state(own_item);
    1.34  	  heap.state(own_item, own_state);
    1.35  
    1.36 -	  state = _Heap::PRE_HEAP;
    1.37 -	  state = _Heap::IN_HEAP;
    1.38 -	  state = _Heap::POST_HEAP;
    1.39  	  own_state = _Heap::PRE_HEAP;
    1.40  	  own_state = _Heap::IN_HEAP;
    1.41  	  own_state = _Heap::POST_HEAP;