Skip to content

Commit

Permalink
removed XML import code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jongyoonbae committed Feb 11, 2022
1 parent a065415 commit f3dea62
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
6 changes: 0 additions & 6 deletions include/cantera/thermo/CoverageDependentSurfPhase.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ class CoverageDependentSurfPhase : public SurfPhase
//! in the file is used
explicit CoverageDependentSurfPhase(const std::string& infile, const std::string& id);

//! Construct and initialize a SurfPhase ThermoPhase object directly from an
//! XML database
//! @param xmlphase XML node pointing to a SurfPhase description
//! @deprecated The XML input format is deprecated and will be removed in Cantera 3.0.
CoverageDependentSurfPhase(XML_Node& xmlphase);

//! Set the polynomial coverage dependece for species
/*!
* enthalpy and entropy are sum of ideal surface species enthalpy and entropy
Expand Down
14 changes: 1 addition & 13 deletions src/thermo/CoverageDependentSurfPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ CoverageDependentSurfPhase::CoverageDependentSurfPhase(const std::string& infile
initThermoFile(infile, id_);
}

CoverageDependentSurfPhase::CoverageDependentSurfPhase(XML_Node& xmlphase):
m_covstateNum(-1),
m_covstateNumlast(0),
m_has_polynomial_dependency(false),
m_has_piecewise_dependency(false),
m_has_interpolative_dependency(false),
m_has_heatcapacity_dependency(false),
m_has_ref_coverage(false)
{
importPhase(xmlphase, this);
}

void CoverageDependentSurfPhase::setPolynomialDependency(const PolynomialDependency&
poly_deps)
{
Expand Down Expand Up @@ -769,4 +757,4 @@ void CoverageDependentSurfPhase::_updateThermo(bool force) const
}
}

}
}
2 changes: 0 additions & 2 deletions src/thermo/ThermoFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ ThermoFactory::ThermoFactory()
addAlias("ideal-surface", "Surface");
addAlias("ideal-surface", "Surf");
reg("coverage-dependent-surface", []() { return new CoverageDependentSurfPhase(); });
addAlias("coverage-dependent-surface", "CoverageDependentSurface");
addAlias("coverage-dependent-surface", "CovDepSurf");
reg("edge", []() { return new EdgePhase(); });
addAlias("edge", "Edge");
reg("electron-cloud", []() { return new MetalPhase(); });
Expand Down

0 comments on commit f3dea62

Please sign in to comment.