remove deprecation warning which is not yet issued.

This will be deprecated with `4.2`. [ci skip]