Remove redundant 'NotImplemented' exception class

This commit is contained in:
Ray Speth 2014-06-10 16:21:16 +00:00
parent 2558ec222d
commit 1ea1e705f3
3 changed files with 3 additions and 24 deletions

View file

@ -131,16 +131,16 @@ public:
//! Return the mixture transport property value.
//! (Must be implemented in subclasses.)
virtual doublereal getMixTransProp(doublereal* speciesValues, doublereal* weightSpecies = 0) {
throw NotImplemented("LiquidTranInteraction::getMixTransProp");
throw NotImplementedError("LiquidTranInteraction::getMixTransProp");
}
virtual doublereal getMixTransProp(std::vector<LTPspecies*> LTPptrs) {
throw NotImplemented("LiquidTranInteraction::getMixTransProp");
throw NotImplementedError("LiquidTranInteraction::getMixTransProp");
}
virtual void getMatrixTransProp(DenseMatrix& mat, doublereal* speciesValues = 0) {
//mat = m_Dij;
throw NotImplemented("LiquidTranInteraction::getMixTransProp");
throw NotImplementedError("LiquidTranInteraction::getMixTransProp");
}
protected:

View file

@ -15,20 +15,6 @@ namespace Cantera
class XML_Writer;
//! Error class to indicate an unimplemented method
/*!
* This class is used by transport objects
*/
class NotImplemented : public CanteraError
{
public:
//! Constructor for error class
/*!
* @param method Single string indicating a method that is not implemented
*/
NotImplemented(const std::string& method);
};
//! Base structure to hold transport model parameters.
/*!
* This structure is used by TransportFactory.

View file

@ -15,13 +15,6 @@ using namespace std;
namespace Cantera
{
NotImplemented::NotImplemented(const std::string& method) :
CanteraError("Transport",
"\n\n**** Method " + method + " not implemented. ****\n"
"(Did you forget to specify a transport model?)\n\n")
{
}
TransportParams::TransportParams() :
nsp_(0),
thermo(0),