[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 548e2fb 1/3: Eliminate a needless local varia
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 548e2fb 1/3: Eliminate a needless local variable |
Date: |
Tue, 25 Aug 2020 19:18:01 -0400 (EDT) |
branch: master
commit 548e2fbb9346200fe3e2c45f10b5f67d75d0a47a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Eliminate a needless local variable
'net_pmt' was just a (not even const) copy of the 'payment' argument.
---
ihs_avmly.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 746eea9..05f3db9 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -273,8 +273,6 @@ void AccountValue::process_payment(double payment)
LMI_ASSERT(0.0 <= EeGrossPmts[Month]);
LMI_ASSERT(0.0 <= ErGrossPmts[Month]);
- double net_pmt = payment;
-
double gross_1035 = 0.0;
if(0 == Year && 0 == Month)
{
@@ -286,8 +284,8 @@ void AccountValue::process_payment(double payment)
{
er_ratio = ErGrossPmts[Month] / gross_non_1035_pmts;
}
- double er_net_pmt = er_ratio * net_pmt;
- double ee_net_pmt = net_pmt - er_net_pmt;
+ double er_net_pmt = er_ratio * payment;
+ double ee_net_pmt = payment - er_net_pmt;
switch(ee_premium_allocation_method)
{