lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master f3feb8c 2/3: Expunge a needless member functi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f3feb8c 2/3: Expunge a needless member function
Date: Tue, 5 Feb 2019 06:21:51 -0500 (EST)

branch: master
commit f3feb8caa43e518e1ee48f0dab24bcf29e287674
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Expunge a needless member function
---
 group_quote_pdf_gen_wx.cpp | 2 +-
 ledger_invariant.hpp       | 6 ------
 ledger_text_formats.cpp    | 2 +-
 pdf_command_wx.cpp         | 6 +++---
 4 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/group_quote_pdf_gen_wx.cpp b/group_quote_pdf_gen_wx.cpp
index 5c6e37e..138033a 100644
--- a/group_quote_pdf_gen_wx.cpp
+++ b/group_quote_pdf_gen_wx.cpp
@@ -412,7 +412,7 @@ void 
group_quote_pdf_generator_wx::global_report_data::fill_global_report_data
     product_          = invar.PolicyMktgName;
     short_product_    = invar.GroupQuoteShortProductName;
     premium_mode_     = invar.InitErMode;
-    contract_state_   = invar.GetStatePostalAbbrev();
+    contract_state_   = invar.StatePostalAbbrev;
     jdn_t eff_date    = jdn_t(static_cast<int>(invar.EffDateJdn));
     effective_date_   = ConvertDateToWx(eff_date).FormatDate().ToStdString();
     // Deliberately begin the footer with <br> tags, to separate it
diff --git a/ledger_invariant.hpp b/ledger_invariant.hpp
index e87b4cb..abe6eab 100644
--- a/ledger_invariant.hpp
+++ b/ledger_invariant.hpp
@@ -57,7 +57,6 @@ class LMI_SO LedgerInvariant
     bool                         IsFullyInitialized()    const;
     int                          GetLength()             const override;
     std::vector<double> const&   GetInforceLives()       const;
-    std::string const&           GetStatePostalAbbrev()  const;
 
     void CalculateIrrs(Ledger const&);
 
@@ -432,9 +431,4 @@ inline std::vector<double> const& 
LedgerInvariant::GetInforceLives() const
     return InforceLives;
 }
 
-inline std::string const& LedgerInvariant::GetStatePostalAbbrev() const
-{
-    return StatePostalAbbrev;
-}
-
 #endif // ledger_invariant_hpp
diff --git a/ledger_text_formats.cpp b/ledger_text_formats.cpp
index 1ce1292..25bfcfe 100644
--- a/ledger_text_formats.cpp
+++ b/ledger_text_formats.cpp
@@ -209,7 +209,7 @@ std::string calculation_summary_formatter::top_note
             << invar_.Gender << ", " << invar_.Smoker
             << std::setprecision(0)
             << ", age " << invar_.Age
-            << ", " << invar_.GetStatePostalAbbrev() << " jurisdiction"
+            << ", " << invar_.StatePostalAbbrev << " jurisdiction"
             << line_break
             ;
         if(invar_.IsMec)
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 7199b3e..dbf600d 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -983,7 +983,7 @@ class pdf_illustration : protected html_interpolator, 
protected pdf_writer_wx
               || policy_name == "Group Flexible Premium Variable Adjustable 
Life Insurance Certificate"
             );
 
-        auto const& state_abbrev = invar.GetStatePostalAbbrev();
+        auto const& state_abbrev = invar.StatePostalAbbrev;
         add_variable
             ("StateIsNorthOrSouthCarolina"
             ,state_abbrev == "NC" || state_abbrev == "SC"
@@ -2177,7 +2177,7 @@ class pdf_illustration_naic : public pdf_illustration
     {
         auto const& invar = ledger.GetLedgerInvariant();
         auto const& policy_name = invar.PolicyLegalName;
-        auto const& state_abbrev = invar.GetStatePostalAbbrev();
+        auto const& state_abbrev = invar.StatePostalAbbrev;
 
         // Define variables specific to this illustration which doesn't use the
         // standard 60/30 lengths for whatever reason.
@@ -2828,7 +2828,7 @@ class pdf_illustration_finra : public pdf_illustration
             }
 
         auto const& policy_name = invar.PolicyLegalName;
-        auto const& state_abbrev = invar.GetStatePostalAbbrev();
+        auto const& state_abbrev = invar.StatePostalAbbrev;
 
         add_variable
             ("UWTypeIsGuaranteedIssueInTexasWithFootnote"



reply via email to

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