summaryrefslogtreecommitdiff
path: root/wasserstein/include/auction_oracle_kdtree_restricted.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'wasserstein/include/auction_oracle_kdtree_restricted.hpp')
-rw-r--r--wasserstein/include/auction_oracle_kdtree_restricted.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/wasserstein/include/auction_oracle_kdtree_restricted.hpp b/wasserstein/include/auction_oracle_kdtree_restricted.hpp
index f0e7ac6..e86a5d5 100644
--- a/wasserstein/include/auction_oracle_kdtree_restricted.hpp
+++ b/wasserstein/include/auction_oracle_kdtree_restricted.hpp
@@ -270,7 +270,6 @@ IdxValPair<Real_> AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_opt
// and vice versa.
size_t best_item_idx { k_invalid_index };
- size_t second_best_item_idx { k_invalid_index };
size_t best_diagonal_item_idx { k_invalid_index };
Real best_item_value;
Real second_best_item_value;
@@ -297,17 +296,14 @@ IdxValPair<Real_> AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_opt
best_item_idx = proj_item_idx;
best_item_value = proj_item_value;
second_best_item_value = best_diagonal_item_value_;
- second_best_item_idx = best_diagonal_item_idx;
} else if (proj_item_value < second_best_diagonal_item_value_) {
best_item_idx = best_diagonal_item_idx;
best_item_value = best_diagonal_item_value_;
second_best_item_value = proj_item_value;
- second_best_item_idx = proj_item_idx;
} else {
best_item_idx = best_diagonal_item_idx;
best_item_value = best_diagonal_item_value_;
second_best_item_value = second_best_diagonal_item_value_;
- second_best_item_idx = second_best_diagonal_item_idx_;
}
} else {
// for normal bidder get 2 best items among non-diagonal points from