Remove unused variable MetalSHEelectrons::xdef_
This commit is contained in:
parent
3f6d8b0aca
commit
3c05e801a4
2 changed files with 4 additions and 25 deletions
|
|
@ -211,9 +211,6 @@ public:
|
|||
*/
|
||||
MetalSHEelectrons& operator=(const MetalSHEelectrons& right);
|
||||
|
||||
//! Destructor for the routine
|
||||
virtual ~MetalSHEelectrons();
|
||||
|
||||
//! Duplication function
|
||||
/*!
|
||||
* This virtual function is used to create a duplicate of the
|
||||
|
|
@ -457,9 +454,6 @@ public:
|
|||
* @endcode
|
||||
*/
|
||||
virtual void setParametersFromXML(const XML_Node& eosdata);
|
||||
|
||||
protected:
|
||||
XML_Node* xdef_;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,46 +24,31 @@ namespace Cantera
|
|||
* ---- Constructors -------
|
||||
*/
|
||||
|
||||
MetalSHEelectrons::MetalSHEelectrons():
|
||||
xdef_(0)
|
||||
MetalSHEelectrons::MetalSHEelectrons()
|
||||
{
|
||||
}
|
||||
|
||||
MetalSHEelectrons::MetalSHEelectrons(const std::string& infile, const std::string& id_) :
|
||||
xdef_(0)
|
||||
MetalSHEelectrons::MetalSHEelectrons(const std::string& infile, const std::string& id_)
|
||||
{
|
||||
initThermoFile(infile, id_);
|
||||
}
|
||||
|
||||
MetalSHEelectrons::MetalSHEelectrons(XML_Node& xmlphase, const std::string& id_) :
|
||||
xdef_(0)
|
||||
MetalSHEelectrons::MetalSHEelectrons(XML_Node& xmlphase, const std::string& id_)
|
||||
{
|
||||
importPhase(xmlphase, this);
|
||||
}
|
||||
|
||||
MetalSHEelectrons::MetalSHEelectrons(const MetalSHEelectrons& right) :
|
||||
xdef_(0)
|
||||
MetalSHEelectrons::MetalSHEelectrons(const MetalSHEelectrons& right)
|
||||
{
|
||||
operator=(right);
|
||||
}
|
||||
|
||||
MetalSHEelectrons::~MetalSHEelectrons()
|
||||
{
|
||||
delete xdef_;
|
||||
}
|
||||
|
||||
MetalSHEelectrons& MetalSHEelectrons::operator=(const MetalSHEelectrons& right)
|
||||
{
|
||||
if (&right != this) {
|
||||
SingleSpeciesTP::operator=(right);
|
||||
}
|
||||
|
||||
delete xdef_;
|
||||
if(right.xdef_)
|
||||
{
|
||||
xdef_ = new XML_Node(*right.xdef_);
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue