lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/002 5447866 2/7: Do away with unused return


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 5447866 2/7: Do away with unused return value #2
Date: Sun, 20 Sep 2020 18:51:23 -0400 (EDT)

branch: valyuta/002
commit 5447866e4c87a1865426951d1f438e8b62a997d8
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Do away with unused return value #2
---
 account_value.hpp | 2 +-
 accountvalue.cpp  | 4 ++--
 ihs_acctval.cpp   | 6 ++----
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/account_value.hpp b/account_value.hpp
index 0a409b1..b0b6b3b 100644
--- a/account_value.hpp
+++ b/account_value.hpp
@@ -60,7 +60,7 @@ class LMI_SO AccountValue final
     AccountValue(AccountValue&&) = default;
     ~AccountValue() override = default;
 
-    currency RunAV();
+    void RunAV();
 
     void SetDebugFilename    (std::string const&);
 
diff --git a/accountvalue.cpp b/accountvalue.cpp
index 07b72da..27fa95b 100644
--- a/accountvalue.cpp
+++ b/accountvalue.cpp
@@ -139,12 +139,12 @@ std::shared_ptr<Ledger const> 
AccountValue::ledger_from_av() const
 }
 
 //============================================================================
-currency AccountValue::RunAV()
+void AccountValue::RunAV()
 {
     InvariantValues().Init(this);
     OverridingPmts = stored_pmts;
     Solving = mce_solve_none != yare_input_.SolveType;
-    return RunAllApplicableBases();
+    RunAllApplicableBases();
 }
 
 //============================================================================
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index b162d1f..d450f3e 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -180,7 +180,7 @@ std::shared_ptr<Ledger const> 
AccountValue::ledger_from_av() const
 }
 
 //============================================================================
-currency AccountValue::RunAV()
+void AccountValue::RunAV()
 {
 /*
 First run current, for solves and strategies. This determines
@@ -205,11 +205,9 @@ Then run other bases.
         DebugPrintInit();
         }
 
-    currency z = RunAllApplicableBases();
+    RunAllApplicableBases();
 
     FinalizeLifeAllBases();
-
-    return z;
 }
 
 //============================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]