Skip to content

Commit

Permalink
remove whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulXiCao committed Apr 18, 2024
1 parent 388ecb5 commit 4fd2c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ql/termstructures/yield/ratehelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ namespace QuantLib {
fixedDayCount_(std::move(fixedDayCount)), spread_(std::move(spread)), endOfMonth_(endOfMonth),
fwdStart_(fwdStart), discountHandle_(std::move(discount)),
useIndexedCoupons_(useIndexedCoupons), swapBuiltViaGivenBuilder(false) {

// take fixing into account
iborIndex_ = iborIndex->clone(termStructureHandle_);
// We want to be notified of changes of fixings, but we don't
Expand Down Expand Up @@ -675,6 +676,7 @@ namespace QuantLib {
}

latestDate_ = pillarDate_; // backward compatibility

}

void SwapRateHelper::setTermStructure(YieldTermStructure* t) {
Expand All @@ -687,6 +689,7 @@ namespace QuantLib {

ext::shared_ptr<YieldTermStructure> temp(t, null_deleter());
termStructureHandle_.linkTo(temp, observer);

if (discountHandle_.empty())
discountRelinkableHandle_.linkTo(temp, observer);
else
Expand Down
3 changes: 0 additions & 3 deletions ql/termstructures/yield/ratehelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,8 @@ namespace QuantLib {
//@}
protected:
void initializeDates() override;

Natural settlementDays_;
Period tenor_;

Pillar::Choice pillarChoice_;
Calendar calendar_;
BusinessDayConvention fixedConvention_;
Expand All @@ -360,7 +358,6 @@ namespace QuantLib {
Handle<YieldTermStructure> discountHandle_;
RelinkableHandle<YieldTermStructure> discountRelinkableHandle_;
ext::optional<bool> useIndexedCoupons_;

bool swapBuiltViaGivenBuilder;

Check notice on line 361 in ql/termstructures/yield/ratehelpers.hpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

ql/termstructures/yield/ratehelpers.hpp#L361

class member 'SwapRateHelper::swapBuiltViaGivenBuilder' is never used.
};

Expand Down

0 comments on commit 4fd2c1a

Please sign in to comment.