[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d4562c7 09/25: Remove dead code [294]
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d4562c7 09/25: Remove dead code [294] |
Date: |
Wed, 24 Feb 2021 19:00:52 -0500 (EST) |
branch: master
commit d4562c7dce21083e89ee09c662702a30e1f1e6cb
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Remove dead code [294]
---
interest_rates.cpp | 19 -------------------
interest_rates.hpp | 19 -------------------
2 files changed, 38 deletions(-)
diff --git a/interest_rates.cpp b/interest_rates.cpp
index aea0421..c5867e6 100644
--- a/interest_rates.cpp
+++ b/interest_rates.cpp
@@ -283,7 +283,6 @@ instead of passing BasicValues, pass these requirements
only:
v.round_interest_rate()
v.round_interest_rate_7702()
v.IsSubjectToIllustrationReg()
- v.SpreadFor7702()
#endif // 0
InterestRates::InterestRates(BasicValues const& v)
@@ -301,7 +300,6 @@ InterestRates::InterestRates(BasicValues const& v)
,LoanRateType_ {v.yare_input_.LoanRateType}
,NeedPrefLoanRates_ {v.database().query<bool>(DB_AllowPrefLoan)}
,NeedHoneymoonRates_ {v.yare_input_.HoneymoonEndorsement}
- ,SpreadFor7702_ {v.SpreadFor7702()}
{
Initialize(v);
}
@@ -390,8 +388,6 @@ void InterestRates::Initialize(BasicValues const& v)
);
}
- v.database().query_into(DB_AnnInterestRate7702, Statutory7702i_);
-
// Convert interest rates and test.
InitializeGeneralAccountRates();
@@ -802,19 +798,4 @@ void InterestRates::DynamicMlySepAcctRate
void InterestRates::Initialize7702Rates()
{
-// TODO ?? TAXATION !! Calculate both:
-// std::vector<double> MlyGlpRate_;
-// std::vector<double> MlyGspRate_;
-
- std::vector<double> const& annual_guar_rate =
GenAcctGrossRate_[mce_gen_guar];
-
- // ET !! This ought to be implicit, at least in some 'safe' mode:
- // LMI_ASSERT_EQUAL(MlyGlpRate_.size(), SpreadFor7702_.size());
- // _without_ assigning from Zero_ first; but it's not.
- // See test_pete_assignment() in 'expression_template_0_test.cpp'.
- MlyGlpRate_ = Zero_;
- assign(MlyGlpRate_, apply_binary(greater_of<double>(), Statutory7702i_,
annual_guar_rate));
- LMI_ASSERT(MlyGlpRate_.size() == SpreadFor7702_.size());
- MlyGlpRate_ -= SpreadFor7702_;
- assign(MlyGlpRate_, apply_unary(i_upper_12_over_12_from_i<double>(),
MlyGlpRate_));
}
diff --git a/interest_rates.hpp b/interest_rates.hpp
index fdbe8fd..34fe220 100644
--- a/interest_rates.hpp
+++ b/interest_rates.hpp
@@ -142,9 +142,6 @@ class InterestRates
InterestRates(BasicValues const&);
~InterestRates() = default;
- std::vector<double> const& MlyGlpRate() const;
- std::vector<double> const& MlyGspRate() const;
-
std::vector<double> const& GenAcctGrossRate
(mcenum_gen_basis
) const;
@@ -291,12 +288,6 @@ class InterestRates
;
std::vector<double> HoneymoonValueSpread_;
std::vector<double> PostHoneymoonSpread_;
-
- // GLP and GSP interest rates. DCV uses the GLP rate.
- std::vector<double> Statutory7702i_;
- std::vector<double> SpreadFor7702_;
- std::vector<double> MlyGlpRate_;
- std::vector<double> MlyGspRate_;
};
inline std::vector<double> const& InterestRates::GenAcctGrossRate
@@ -398,14 +389,4 @@ inline std::vector<double> const&
InterestRates::PostHoneymoonGenAcctRate
return PostHoneymoonGenAcctRate_[rate_period][gen_basis];
}
-inline std::vector<double> const& InterestRates::MlyGlpRate() const
-{
- return MlyGlpRate_;
-}
-
-inline std::vector<double> const& InterestRates::MlyGspRate() const
-{
- return MlyGspRate_;
-}
-
#endif // interest_rates_hpp
- [lmi-commits] [lmi] master 6bde573 12/25: Make certain shared_ptr members const, (continued)
- [lmi-commits] [lmi] master 6bde573 12/25: Make certain shared_ptr members const, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master ee8667d 13/25: Turn a local variable into a member, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master 9f5c39d 15/25: Expunge disused accessors, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master 8db602c 16/25: Turn several members into local variables, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master 87af00c 19/25: Support a further "refactoring", Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master ad762d4 18/25: Remove dead code, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master ec7093b 22/25: Eradicate global iglp() and igsp(), Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master bf5f2ba 23/25: Eradicate bogosity, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master 84ea017 11/25: Localize 7702 spread in class BasicValues, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master 3a395bc 17/25: Use new rather than old code, Greg Chicares, 2021/02/24
- [lmi-commits] [lmi] master d4562c7 09/25: Remove dead code [294],
Greg Chicares <=