Deprecate methods that are useless

This can help user to identify coding mistakes earlier.