Skip to content

Commit

Permalink
remove remnants of DividendVanillaOption
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Jul 15, 2024
1 parent a3e9a86 commit 5ac50cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions quantlib/instruments/_option.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ cdef extern from 'ql/option.hpp' namespace 'QuantLib':
cdef extern from 'ql/instruments/oneassetoption.hpp' namespace 'QuantLib':

cdef cppclass OneAssetOption(Option):
cppclass engine(PricingEngine):
pass
OneAssetOption(
shared_ptr[StrikedTypePayoff]& payoff,
shared_ptr[Exercise]& exercise
Expand Down Expand Up @@ -73,9 +75,3 @@ cdef extern from 'ql/instruments/europeanoption.hpp' namespace 'QuantLib':
shared_ptr[StrikedTypePayoff]& payoff,
shared_ptr[Exercise]& exercise
)

cdef extern from 'ql/instruments/dividendvanillaoption.hpp' namespace 'QuantLib':

cdef cppclass DividendVanillaOption(OneAssetOption):
cppclass engine(PricingEngine):
pass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from libcpp cimport bool
from quantlib.handle cimport shared_ptr
from quantlib.types cimport Size, Real
from quantlib.instruments._option cimport DividendVanillaOption
from quantlib.instruments._option cimport VanillaOption
from quantlib.instruments._dividendschedule cimport DividendSchedule
from quantlib.processes._black_scholes_process cimport GeneralizedBlackScholesProcess
from quantlib.methods.finitedifferences.solvers._fdmbackwardsolver cimport FdmSchemeDesc
Expand All @@ -13,7 +13,7 @@ cdef extern from 'ql/pricingengines/vanilla/fdblackscholesvanillaengine.hpp' nam

cdef extern from 'ql/pricingengines/vanilla/fdblackscholesvanillaengine.hpp' namespace 'QuantLib':

cdef cppclass FdBlackScholesVanillaEngine(DividendVanillaOption.engine):
cdef cppclass FdBlackScholesVanillaEngine(VanillaOption.engine):
enum CashDividendModel:
pass

Expand Down

0 comments on commit 5ac50cf

Please sign in to comment.