Skip to content

Commit

Permalink
Fix: remove unnecessary local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shunmaruko committed Nov 19, 2023
1 parent a70e7bd commit f5b049a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ql/instruments/assetswap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace QuantLib {
bool parSwap_;
Date upfrontDate_;
// results
mutable Spread fairSpread_ ;
mutable Spread fairSpread_;
mutable Real fairCleanPrice_, fairNonParRepayment_;
};

Expand Down
2 changes: 0 additions & 2 deletions test-suite/assetswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4287,8 +4287,6 @@ BOOST_AUTO_TEST_CASE(testIborVsOis) {
vars.termStructure, true, bond->settlementDate(), Settings::instance().evaluationDate()));

assetSwapIbor.setPricingEngine(swapEngine);
Real fairCleanPrice = assetSwapIbor.fairCleanPrice();
Spread fairSpread = assetSwapIbor.fairSpread();

Real tolerance = 1.0e-10;

Expand Down

0 comments on commit f5b049a

Please sign in to comment.