[Refactoring] Remove unused ethis parameter from Expression::checkPurity
fix Issue 10981 - Contracts in pure class methods are useless