From f263ee13387924cd53b170b29f1783977284722f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami <kajinamit@oss.nttdata.com> Date: Fri, 3 May 2024 22:11:51 +0900 Subject: [PATCH] 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 --- requirements.txt | 1 - tackerclient/common/utils.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index da4a0aca..7c99dffe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/tackerclient/common/utils.py b/tackerclient/common/utils.py index c605cffe..0de68e2b 100644 --- a/tackerclient/common/utils.py +++ b/tackerclient/common/utils.py @@ -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)