Skip to content

Commit

Permalink
Remove class deprecated in version 1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 25, 2024
1 parent e3e33d4 commit 92682f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 42 deletions.
1 change: 1 addition & 0 deletions cmake/GenerateHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function(generate_dir_headers source_dir binary_dir)
list(FILTER children_hpp EXCLUDE REGEX "bsmtermoperator.hpp")
list(FILTER children_hpp EXCLUDE REGEX "fdtypedefs.hpp")
list(FILTER children_hpp EXCLUDE REGEX "parallelevolver.hpp")
list(FILTER children_hpp EXCLUDE REGEX "fixedratebondforward.hpp")

file(GLOB children_dir RELATIVE ${source_dir} "${source_dir}/*")
list(FILTER children_dir EXCLUDE REGEX "CMakeFiles")
Expand Down
2 changes: 1 addition & 1 deletion ql/instruments/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ all.hpp: Makefile.am
echo "/* This file is automatically generated; do not edit. */" > ${srcdir}/$@
echo "/* Add the files to be included into Makefile.am instead. */" >> ${srcdir}/$@
echo >> ${srcdir}/$@
for i in $(filter-out all.hpp dividendbarrieroption.hpp dividendvanillaoption.hpp, $(this_include_HEADERS)); do \
for i in $(filter-out all.hpp dividendbarrieroption.hpp dividendvanillaoption.hpp fixedratebondforward.hpp, $(this_include_HEADERS)); do \
echo "#include <${subdir}/$$i>" >> ${srcdir}/$@; \
done
echo >> ${srcdir}/$@
Expand Down
1 change: 0 additions & 1 deletion ql/instruments/all.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <ql/instruments/doublebarriertype.hpp>
#include <ql/instruments/equitytotalreturnswap.hpp>
#include <ql/instruments/europeanoption.hpp>
#include <ql/instruments/fixedratebondforward.hpp>
#include <ql/instruments/fixedvsfloatingswap.hpp>
#include <ql/instruments/floatfloatswap.hpp>
#include <ql/instruments/floatfloatswaption.hpp>
Expand Down
45 changes: 5 additions & 40 deletions ql/instruments/fixedratebondforward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,11 @@
FOR A PARTICULAR PURPOSE. See the license for more details.
*/

/*! \file fixedratebondforward.hpp
\brief forward contract on a fixed-rate bond
*/

#ifndef quantlib_fixed_rate_bond_forward_hpp
#define quantlib_fixed_rate_bond_forward_hpp

#include <ql/instruments/bondforward.hpp>
#include <ql/instruments/bonds/fixedratebond.hpp>

namespace QuantLib {

//! %Forward contract on a fixed-rate bond
/*! \deprecated Use BondForward instead. */
class QL_DEPRECATED FixedRateBondForward : public BondForward {
public:
FixedRateBondForward(
const Date& valueDate,
const Date& maturityDate,
Position::Type type,
Real strike,
Natural settlementDays,
const DayCounter& dayCounter,
const Calendar& calendar,
BusinessDayConvention businessDayConvention,
const ext::shared_ptr<FixedRateBond>& fixedRateBond,
const Handle<YieldTermStructure>& discountCurve = Handle<YieldTermStructure>(),
const Handle<YieldTermStructure>& incomeDiscountCurve = Handle<YieldTermStructure>())
: BondForward(valueDate,
maturityDate,
type,
strike,
settlementDays,
dayCounter,
calendar,
businessDayConvention,
fixedRateBond,
discountCurve,
incomeDiscountCurve) {}
};
}

#endif
/* Deprecated in version 1.37 */

#pragma message("Warning: this file is empty and will disappear in a future release; do not include it.")

#endif

0 comments on commit 92682f6

Please sign in to comment.