Sometimes you want to remove an outdated function, but can’t because users are relying on it. Then you’ll have to deprecate it instead. The snippet below logs a useful warning, which shows you where the deprecated function is used (without bugging the user):