[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a73a260 6/7: Do away with unused return value
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a73a260 6/7: Do away with unused return value #5 |
Date: |
Sat, 16 Jan 2021 04:07:20 -0500 (EST) |
branch: master
commit a73a26071297aeb51db51740fabd1d0bf479ed39
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Do away with unused return value #5
---
account_value.hpp | 2 +-
accountvalue.cpp | 4 +---
ihs_acctval.cpp | 4 +---
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/account_value.hpp b/account_value.hpp
index 45f78f6..cf01e82 100644
--- a/account_value.hpp
+++ b/account_value.hpp
@@ -130,7 +130,7 @@ class LMI_SO AccountValue final
LedgerInvariant& InvariantValues();
LedgerVariant & VariantValues ();
- double RunOneCell (mcenum_run_basis);
+ void RunOneCell (mcenum_run_basis);
void RunOneBasis (mcenum_run_basis);
void RunAllApplicableBases ();
void InitializeLife (mcenum_run_basis);
diff --git a/accountvalue.cpp b/accountvalue.cpp
index 079d38d..f2c72c5 100644
--- a/accountvalue.cpp
+++ b/accountvalue.cpp
@@ -204,7 +204,7 @@ void AccountValue::RunAllApplicableBases()
}
//============================================================================
-double AccountValue::RunOneCell(mcenum_run_basis TheBasis)
+void AccountValue::RunOneCell(mcenum_run_basis TheBasis)
{
if(Solving)
{
@@ -249,8 +249,6 @@ double AccountValue::RunOneCell(mcenum_run_basis TheBasis)
DoYear(TheBasis, Year, (Year == InforceYear) ? InforceMonth : 0);
}
}
-
- return AVUnloaned + AVRegLn + AVPrfLn;
}
//============================================================================
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 248165f..4bf92bf 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -314,7 +314,7 @@ void AccountValue::RunAllApplicableBases()
/// which isn't necessary anyway because all the functions it calls
/// contain such a condition.
-double AccountValue::RunOneCell(mcenum_run_basis a_Basis)
+void AccountValue::RunOneCell(mcenum_run_basis a_Basis)
{
InitializeLife(a_Basis);
@@ -348,8 +348,6 @@ double AccountValue::RunOneCell(mcenum_run_basis a_Basis)
}
FinalizeLife(a_Basis);
-
- return TotalAccountValue();
}
//============================================================================
- [lmi-commits] [lmi] master updated (f4619be -> eb70cdc), Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master 400f752 2/7: Do away with unused return value #1, Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master a73a260 6/7: Do away with unused return value #5,
Greg Chicares <=
- [lmi-commits] [lmi] master 997d4d0 5/7: Do away with unused return value #4, Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master 8ee9eaf 1/7: Don't name unused template parameters, Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master 78d6d35 4/7: Do away with unused return value #3, Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master bad394a 3/7: Do away with unused return value #2, Greg Chicares, 2021/01/16
- [lmi-commits] [lmi] master eb70cdc 7/7: Prefer not to pass std::vector by value, Greg Chicares, 2021/01/16