lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master a7d075cd 16/27: Document, suppress, or expung


From: Greg Chicares
Subject: [lmi-commits] [lmi] master a7d075cd 16/27: Document, suppress, or expunge unused formats
Date: Mon, 25 Apr 2022 12:56:16 -0400 (EDT)

branch: master
commit a7d075cdfb679ec90901dee94b84e254ad8cf13e
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Document, suppress, or expunge unused formats
    
    "LoanInt" was a hapax legomenon: it referred to nothing.
    
    "PrefLoanBalance" isn't used yet, but a runtime check requires that it
    have a format, which will be 'f5' if it ever is used.
---
 ledger_evaluator.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index 407b93d5..94e8ae3d 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -644,7 +644,6 @@ format_map_t static_formats()
     ,{"GrossIntCredited"                , f5}
     ,{"GrossPmt"                        , f5}
     ,{"Loads"                           , f1}
-    ,{"LoanInt"                         , f1}
     ,{"LoanIntAccrued"                  , f5}
     ,{"ModalMinimumPremium"             , f5}
     ,{"NaarForceout"                    , f1}
@@ -655,7 +654,7 @@ format_map_t static_formats()
     ,{"NewCashLoan"                     , f5}
     ,{"Outlay"                          , f5}
     ,{"PolicyFee"                       , f5}
-    ,{"PrefLoanBalance"                 , f1}
+    ,{"PrefLoanBalance"                 , f5} // Not used yet.
     ,{"PremTaxLoad"                     , f1}
     ,{"RefundableSalesLoad"             , f1}
     ,{"RiderCharges"                    , f5}
@@ -686,7 +685,7 @@ ledger_evaluator Ledger::make_evaluator() const
 
     mask_map_t mask_map {static_masks()};
 
-    std::pair<int,oenum_format_style> f1(0, oe_format_normal);
+//  std::pair<int,oenum_format_style> f1(0, oe_format_normal);     // not used
 //  std::pair<int,oenum_format_style> f2(2, oe_format_normal);     // not used
     std::pair<int,oenum_format_style> f3(0, oe_format_percentage);
 //  std::pair<int,oenum_format_style> f4(2, oe_format_percentage); // not used



reply via email to

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