diff --git a/src/package.cc b/src/package.cc index baa7dbd8b0..8f5b9f3a7a 100644 --- a/src/package.cc +++ b/src/package.cc @@ -52,12 +52,8 @@ std::pair Package::GetFillMass(double qty) { } } fill_mass = std::min(qty, fill_mass); - if (fill_mass >= fill_min_) { - num_at_fill_mass = static_cast(std::floor(qty / fill_mass)); - return std::pair(fill_mass, num_at_fill_mass); - } else { - return std::pair(0, 0); - } + num_at_fill_mass = static_cast(std::floor(qty / fill_mass)); + return std::pair(fill_mass, num_at_fill_mass); } Package::Package(std::string name, double fill_min, double fill_max, diff --git a/src/toolkit/matl_sell_policy.cc b/src/toolkit/matl_sell_policy.cc index 3f4ea62d7c..603b7b558c 100644 --- a/src/toolkit/matl_sell_policy.cc +++ b/src/toolkit/matl_sell_policy.cc @@ -202,8 +202,6 @@ std::set::Ptr> MatlSellPolicy::GetMatlBids( std::pair fill = package_->GetFillMass(qty); bid_qty = excl ? quantize_ : fill.first; if (bid_qty != 0) { - std::cerr << "bid_qty: " << bid_qty << std::endl; - std::cerr << "full bids: " << fill.second << std::endl; n_full_bids = excl ? std::floor(qty / quantize_) : fill.second; // Throw if number of bids above limit or if casting to int caused