Skip to content

Deprecate various unused / redundant functions#2044

Merged
speth merged 12 commits intoCantera:mainfrom
speth:deprecations-11-2025
Nov 14, 2025
Merged

Deprecate various unused / redundant functions#2044
speth merged 12 commits intoCantera:mainfrom
speth:deprecations-11-2025

Conversation

@speth
Copy link
Copy Markdown
Member

@speth speth commented Nov 14, 2025

Changes proposed in this pull request

Deprecating some methods that are either redundant or rarely if ever used. Deleting a couple of unused internal methods. Specifically

  • Delete unreachable WaterPropsIAPWS::corr1 method
  • Deprecate unnecessary methods of WaterPropsIAPWS: density_const, densSpinodalWater, densSpinodalSteam.
  • Deprecate MixtureFugacityTP::densSpinodalLiquid and densSpinodalGas
  • Deprecate ThermoPhase::getPureGibbs method which mirrors getStandardChemPotentials
  • Deprecate Kinetics::getActivityConcentrations -- these should be accessed via ThermoPhase
  • Deprecate unused newReaction(string) constructor for creating "empty" reactions.
  • Deprecate option of using integer return codes instead of exceptions for matrix operation errors in BandMatrix and DenseMatrix
  • Deprecate Python methods add_module_directory and import_phases

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 14, 2025

Codecov Report

❌ Patch coverage is 19.35484% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.40%. Comparing base (0a3d0df) to head (183d11b).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
src/numerics/DenseMatrix.cpp 0.00% 4 Missing and 4 partials ⚠️
src/thermo/WaterPropsIAPWS.cpp 57.14% 3 Missing ⚠️
src/thermo/IdealSolidSolnPhase.cpp 50.00% 2 Missing ⚠️
src/thermo/PengRobinson.cpp 0.00% 2 Missing ⚠️
src/thermo/RedlichKwongMFTP.cpp 0.00% 2 Missing ⚠️
src/kinetics/InterfaceKinetics.cpp 0.00% 1 Missing ⚠️
src/kinetics/Reaction.cpp 0.00% 1 Missing ⚠️
src/thermo/CoverageDependentSurfPhase.cpp 0.00% 1 Missing ⚠️
src/thermo/IdealGasPhase.cpp 0.00% 1 Missing ⚠️
src/thermo/MixtureFugacityTP.cpp 0.00% 1 Missing ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2044      +/-   ##
==========================================
- Coverage   76.41%   76.40%   -0.01%     
==========================================
  Files         463      463              
  Lines       54952    54954       +2     
  Branches     9308     9308              
==========================================
- Hits        41990    41988       -2     
- Misses       9831     9834       +3     
- Partials     3131     3132       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @speth. I'm always happy to see clutter being removed!

@speth speth merged commit fa287bb into Cantera:main Nov 14, 2025
59 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants