Skip to content

Commit

Permalink
[Kinetics] Remove deprecated Reaction constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed May 25, 2022
1 parent 2f63ec1 commit 0912c92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
5 changes: 0 additions & 5 deletions include/cantera/kinetics/Reaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ class Reaction
//! input.
Reaction(const AnyMap& node, const Kinetics& kin);

//! @deprecated To be removed after Cantera 2.6.
explicit Reaction(int type);
//! @deprecated To be removed after Cantera 2.6.
Reaction(int type, const Composition& reactants,
const Composition& products);
virtual ~Reaction() {}

//! The reactant side of the chemical equation for this reaction
Expand Down
31 changes: 0 additions & 31 deletions src/kinetics/Reaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,37 +89,6 @@ Reaction::Reaction(const AnyMap& node, const Kinetics& kin)
}
}

Reaction::Reaction(int type)
: reaction_type(type)
, reversible(true)
, duplicate(false)
, allow_nonreactant_orders(false)
, allow_negative_orders(false)
, rate_units(0.0)
, m_valid(true)
{
warn_deprecated("Reaction::Reaction()",
"To be removed after Cantera 2.6. Use constructor without parameter "
"'type' instead.");
}

Reaction::Reaction(int type, const Composition& reactants_,
const Composition& products_)
: reaction_type(type)
, reactants(reactants_)
, products(products_)
, reversible(true)
, duplicate(false)
, allow_nonreactant_orders(false)
, allow_negative_orders(false)
, rate_units(0.0)
, m_valid(true)
{
warn_deprecated("Reaction::Reaction()",
"To be removed after Cantera 2.6. Use constructor without parameter "
"'type' instead.");
}

void Reaction::validate()
{
if (!allow_nonreactant_orders) {
Expand Down

0 comments on commit 0912c92

Please sign in to comment.