From 92682f6a57c335d76ab03a51d296235e078b65d6 Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Fri, 25 Oct 2024 11:13:50 +0200 Subject: [PATCH] Remove class deprecated in version 1.26 --- cmake/GenerateHeaders.cmake | 1 + ql/instruments/Makefile.am | 2 +- ql/instruments/all.hpp | 1 - ql/instruments/fixedratebondforward.hpp | 45 +++---------------------- 4 files changed, 7 insertions(+), 42 deletions(-) diff --git a/cmake/GenerateHeaders.cmake b/cmake/GenerateHeaders.cmake index a1eecb5fb47..c42de00caa3 100644 --- a/cmake/GenerateHeaders.cmake +++ b/cmake/GenerateHeaders.cmake @@ -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") diff --git a/ql/instruments/Makefile.am b/ql/instruments/Makefile.am index a0623491077..82d77ebf1ce 100644 --- a/ql/instruments/Makefile.am +++ b/ql/instruments/Makefile.am @@ -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}/$@ diff --git a/ql/instruments/all.hpp b/ql/instruments/all.hpp index 5139540afee..45d9e9a8c1e 100644 --- a/ql/instruments/all.hpp +++ b/ql/instruments/all.hpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/ql/instruments/fixedratebondforward.hpp b/ql/instruments/fixedratebondforward.hpp index 63a8a9d8258..496dc66de54 100644 --- a/ql/instruments/fixedratebondforward.hpp +++ b/ql/instruments/fixedratebondforward.hpp @@ -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 -#include - -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, - const Handle& discountCurve = Handle(), - const Handle& incomeDiscountCurve = Handle()) - : BondForward(valueDate, - maturityDate, - type, - strike, - settlementDays, - dayCounter, - calendar, - businessDayConvention, - fixedRateBond, - discountCurve, - incomeDiscountCurve) {} - }; -} - -#endif \ No newline at end of file +/* Deprecated in version 1.37 */ + +#pragma message("Warning: this file is empty and will disappear in a future release; do not include it.") + +#endif