[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/002 2f32980 5/7: Do away with unused return
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/002 2f32980 5/7: Do away with unused return value #5 |
Date: |
Sun, 20 Sep 2020 18:51:23 -0400 (EDT) |
branch: valyuta/002
commit 2f32980d9e492a4bfa2427b86d26d4317e648935
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 89e957a..2309a88 100644
--- a/account_value.hpp
+++ b/account_value.hpp
@@ -131,7 +131,7 @@ class LMI_SO AccountValue final
LedgerInvariant& InvariantValues();
LedgerVariant & VariantValues ();
- currency 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 407ed17..b17d078 100644
--- a/accountvalue.cpp
+++ b/accountvalue.cpp
@@ -204,7 +204,7 @@ void AccountValue::RunAllApplicableBases()
}
//============================================================================
-currency AccountValue::RunOneCell(mcenum_run_basis TheBasis)
+void AccountValue::RunOneCell(mcenum_run_basis TheBasis)
{
if(Solving)
{
@@ -249,8 +249,6 @@ currency 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 3bfbf71..1e80dd8 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -315,7 +315,7 @@ void AccountValue::RunAllApplicableBases()
/// which isn't necessary anyway because all the functions it calls
/// contain such a condition.
-currency AccountValue::RunOneCell(mcenum_run_basis a_Basis)
+void AccountValue::RunOneCell(mcenum_run_basis a_Basis)
{
InitializeLife(a_Basis);
@@ -349,8 +349,6 @@ currency AccountValue::RunOneCell(mcenum_run_basis a_Basis)
}
FinalizeLife(a_Basis);
-
- return TotalAccountValue();
}
//============================================================================
- [lmi-commits] [lmi] valyuta/002 updated (18ab8be -> 5fb74f1), Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 18e7015 1/7: Do away with unused return value #1, Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 2f32980 5/7: Do away with unused return value #5,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/002 89b2c7a 6/7: Fix incorrect documentation, Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 5fb74f1 7/7: Prefer cents() to m(), Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 5447866 2/7: Do away with unused return value #2, Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 96435be 3/7: Do away with unused return value #3, Greg Chicares, 2020/09/20
- [lmi-commits] [lmi] valyuta/002 9419729 4/7: Do away with unused return value #4, Greg Chicares, 2020/09/20