[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b151a43 1/2: Expunge disused experience-ratin
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b151a43 1/2: Expunge disused experience-rating vestiges |
Date: |
Mon, 13 Dec 2021 17:55:21 -0500 (EST) |
branch: master
commit b151a43c2024d4bc3aa23181076f76adde6dc79d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Expunge disused experience-rating vestiges
See:
https://lists.nongnu.org/archive/html/lmi/2021-12/msg00001.html
These vestiges of experience rating ought to have been removed in
commit 72b54dfc1b338 of 20210131T0109Z.
---
account_value.hpp | 1 -
accountvalue.cpp | 2 --
group_values.cpp | 2 --
ihs_acctval.cpp | 10 ++--------
4 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/account_value.hpp b/account_value.hpp
index 3c52dc1..5988fd0 100644
--- a/account_value.hpp
+++ b/account_value.hpp
@@ -100,7 +100,6 @@ class LMI_SO AccountValue final
int GetLength () const;
double InforceLivesBoy () const;
- double InforceLivesEoy () const;
currency GetSepAcctAssetsInforce() const;
void process_payment (currency);
diff --git a/accountvalue.cpp b/accountvalue.cpp
index 7d2c6d6..024b0bc 100644
--- a/accountvalue.cpp
+++ b/accountvalue.cpp
@@ -1060,8 +1060,6 @@ void AccountValue::IncrementEOY(int)
{return;}
double AccountValue::InforceLivesBoy() const
{return 0.0;}
-double AccountValue::InforceLivesEoy() const
- {return 0.0;}
void AccountValue::InitializeLife(mcenum_run_basis)
{return;}
void AccountValue::InitializeYear()
diff --git a/group_values.cpp b/group_values.cpp
index 50cda81..08f4e6b 100644
--- a/group_values.cpp
+++ b/group_values.cpp
@@ -363,7 +363,6 @@ census_run_result run_census_in_parallel::operator()
// year's claims, which is consistent with curtate
// mortality.
- double eoy_inforce_lives = 0.0;
for(auto& i : cell_values)
{
if(i.PrecedesInforceDuration(year, 11))
@@ -371,7 +370,6 @@ census_run_result run_census_in_parallel::operator()
continue;
}
i.SetClaims();
- eoy_inforce_lives += i.InforceLivesEoy();
i.IncrementEOY(year);
}
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 7559bf2..d7261ad 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -1482,14 +1482,8 @@ double AccountValue::InforceLivesBoy() const
{
bool const b {ItLapsed || BasicValues::GetLength() <= Year};
return b ? 0.0 : partial_mortality_lx().at(Year);
-}
-
-/// End of year inforce lives, reflecting lapses and survivorship.
-
-double AccountValue::InforceLivesEoy() const
-{
- bool const b {ItLapsed || BasicValues::GetLength() <= Year};
- return b ? 0.0 : partial_mortality_lx().at(1 + Year);
+ // If EOY rather than BOY is wanted, add one to 'Year':
+// return b ? 0.0 : partial_mortality_lx().at(1 + Year);
}
//============================================================================