Skip to content

Commit

Permalink
Remove dead code paths
Browse files Browse the repository at this point in the history
They were there because older compilers thought that other code paths were possible
  • Loading branch information
ianhbell committed Feb 24, 2024
1 parent ef20774 commit 99b9125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/teqp/derivs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ struct TDXDerivatives {
throw std::invalid_argument("algorithmic differentiation backend is invalid in get_Agenxy for iD > 0 and iT > 0");
}
}
return static_cast<Scalar>(-999999999*T); // This will never hit, only to make compiler happy because it doesn't know the return type
// return static_cast<Scalar>(-999999999*T); // This will never hit, only to make compiler happy because it doesn't know the return type
}

/**
Expand Down Expand Up @@ -334,7 +334,7 @@ struct TDXDerivatives {
return o;
}
#endif
throw std::invalid_argument("algorithmic differentiation backend is invalid in get_Ar0n");
// throw std::invalid_argument("algorithmic differentiation backend is invalid in get_Ar0n");
}

template<int Nderiv, ADBackends be = ADBackends::autodiff, class AlphaWrapper>
Expand Down

0 comments on commit 99b9125

Please sign in to comment.