[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 221f65c 2/4: Expunge six disused data members
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 221f65c 2/4: Expunge six disused data members |
Date: |
Sun, 26 Feb 2017 12:39:01 -0500 (EST) |
branch: master
commit 221f65cd5b496c8f6166d00a793bc0d07b4f8899
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Expunge six disused data members
---
input_sequence.cpp | 14 ++++----------
input_sequence.hpp | 10 ----------
2 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/input_sequence.cpp b/input_sequence.cpp
index 567fea5..e1c0783 100644
--- a/input_sequence.cpp
+++ b/input_sequence.cpp
@@ -68,16 +68,10 @@ InputSequence::InputSequence
,bool a_keywords_only
,std::string const& a_default_keyword
)
- :years_to_maturity_ (a_years_to_maturity)
- ,issue_age_ (a_issue_age)
- ,retirement_age_ (a_retirement_age)
- ,inforce_duration_ (a_inforce_duration)
- ,effective_year_ (a_effective_year)
- ,allowed_keywords_ (a_allowed_keywords)
- ,keywords_only_ (a_keywords_only)
- ,default_keyword_ (a_default_keyword)
- ,number_result_ (a_years_to_maturity)
- ,keyword_result_ (a_years_to_maturity, a_default_keyword)
+ :years_to_maturity_ (a_years_to_maturity)
+ ,issue_age_ (a_issue_age)
+ ,number_result_ (a_years_to_maturity)
+ ,keyword_result_ (a_years_to_maturity, a_default_keyword)
{
// A default keyword should be specified (i.e., nonempty) only for
// keyword-only sequences (otherwise, the default is numeric), and
diff --git a/input_sequence.hpp b/input_sequence.hpp
index ba586e5..3279e47 100644
--- a/input_sequence.hpp
+++ b/input_sequence.hpp
@@ -176,18 +176,8 @@ class LMI_SO InputSequence
void realize_intervals();
- // Copies of ctor args that are identical to class SequenceParser's.
- // Most of these copies are unused as this is written in 2017-01;
- // they're retained in case a use is someday found for them.
int years_to_maturity_;
int issue_age_;
- int retirement_age_;
- int inforce_duration_;
- int effective_year_;
- std::vector<std::string> allowed_keywords_;
- bool keywords_only_;
- // Copy of a ctor arg that is unique to this class.
- std::string default_keyword_;
std::vector<ValueInterval> intervals_;
std::vector<double> number_result_;