Browse Source

removed an unnecessary if (tio.player() !=2) in insert_optimized

avadapal 1 year ago
parent
commit
9607a3b5c7
1 changed files with 0 additions and 2 deletions
  1. 0 2
      heap.cpp

+ 0 - 2
heap.cpp

@@ -98,13 +98,11 @@ void MinHeap::insert_optimized(MPCTIO tio, yield_t & yield, RegAS val) {
     #endif
 
     for (size_t j = 0; j < height; ++j) {
-        if(tio.player() !=2) {
             if(j > 0) {
                 u[j] = flag[j] ^ u[j-1];
             } else {
                 u[j] = flag[j];
             }
-        }
     }
     
     #ifdef HEAP_VERBOSE