[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 400f752 2/7: Do away with unused return value
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 400f752 2/7: Do away with unused return value #1 |
Date: |
Sat, 16 Jan 2021 04:07:19 -0500 (EST) |
branch: master
commit 400f752a618dc658980f333f9d1c8348b58adf1b
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Do away with unused return value #1
---
ledgervalues.cpp | 7 ++-----
ledgervalues.hpp | 2 +-
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/ledgervalues.cpp b/ledgervalues.cpp
index b3e13e9..da24fac 100644
--- a/ledgervalues.cpp
+++ b/ledgervalues.cpp
@@ -34,16 +34,13 @@ IllusVal::IllusVal(std::string const& filename)
{
}
-double IllusVal::run(Input const& input)
+void IllusVal::run(Input const& input)
{
fenv_guard fg;
AccountValue av(input);
av.SetDebugFilename(filename_);
-
- double z = av.RunAV();
+ av.RunAV();
ledger_ = av.ledger_from_av();
-
- return z;
}
std::shared_ptr<Ledger const> IllusVal::ledger() const
diff --git a/ledgervalues.hpp b/ledgervalues.hpp
index 630a0b0..f211b1f 100644
--- a/ledgervalues.hpp
+++ b/ledgervalues.hpp
@@ -42,7 +42,7 @@ class IllusVal final
explicit IllusVal(std::string const& filename);
~IllusVal() = default;
- double run(Input const&);
+ void run(Input const&);
std::shared_ptr<Ledger const> ledger() const;
- [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 <=
- [lmi-commits] [lmi] master a73a260 6/7: Do away with unused return value #5, Greg Chicares, 2021/01/16
- [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