[Refactoring] Remove unused ethis parameter from Expression::checkPurity
fix Issue 10981 - Contracts in pure class methods are useless
Merge pull request #2615 from 9rnsr/fix10981

Issue 10981 - Contracts in pure class methods are useless