From 391b5d7b540962ea0072bcc7fe86be29f55fa7d0 Mon Sep 17 00:00:00 2001 From: Katie Mummah Date: Wed, 17 Apr 2024 10:34:37 -0600 Subject: [PATCH] no package in resource --- src/resource.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/resource.cc b/src/resource.cc index 97b1686860..f7ef824372 100644 --- a/src/resource.cc +++ b/src/resource.cc @@ -10,22 +10,4 @@ void Resource::BumpStateId() { nextstate_id_++; } -std::vector Resource::Package(Package::Ptr pkg) { - std::vector rs_pkgd; - Resource::Ptr r_pkgd; - - double fill_mass = pkg->GetFillMass(quantity()); - if (fill_mass == 0) { - return rs_pkgd; - } - - while (quantity() > pkg->fill_min()) { - double pkg_fill = std::min(quantity(), fill_mass); - r_pkgd = ExtractRes(pkg_fill); - r_pkgd->ChangePackageId(pkg->id()); - rs_pkgd.push_back(r_pkgd); - } - return rs_pkgd; -} - } // namespace cyclus