Issue #22061: Add deprecation warnings in empty obsolete methods.