Remove deprecate_warning utility method

This method is has been unused used since [1] was merged. Removing it
allows us to remove oslo.log from the dependencies.

[1] 845a5e1439b93e60e04511ca79dc7c549e994fba

Change-Id: I182b880e30ba09845218b4607447031fbdf067d0
This commit is contained in:
Takashi Kajinami 2024-05-03 22:11:51 +09:00
parent 940b7a5436
commit f263ee1338
2 changed files with 0 additions and 8 deletions

View File

@ -12,6 +12,5 @@ stevedore>=1.20.0 # Apache-2.0
Babel!=2.4.0,>=2.3.4 # BSD
oslo.i18n>=3.15.3 # Apache-2.0
osc-lib>=1.8.0 # Apache-2.0
oslo.log>=3.36.0 # Apache-2.0
oslo.utils>=3.40.0 # Apache-2.0
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0

View File

@ -21,7 +21,6 @@ import argparse
import logging
import os
from oslo_log import versionutils
from oslo_utils import encodeutils
from oslo_utils import importutils
@ -177,9 +176,3 @@ def get_file_path(filename):
file_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../%s' % filename))
return file_path
def deprecate_warning(what, as_of, in_favor_of=None, remove_in=1):
versionutils.deprecation_warning(as_of=as_of, what=what,
in_favor_of=in_favor_of,
remove_in=remove_in)