From: Bogdan Tabor Date: Wed, 21 Oct 2015 13:40:14 +0000 (+0200) Subject: Mark for removal deadcode in neutron.common.utils X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8022adb7342b09886f53c91c12d0b37986fbf35c;p=openstack-build%2Fneutron-build.git Mark for removal deadcode in neutron.common.utils Methods: * read_cached_file(filename, cache_info, reload_func=None) * find_config_file(options, config_file) * get_keystone_url(conf) are not used withing neutron projects. Change-Id: Iba3325103f5c24c1822781382f4c8864eb2921c5 Closes-bug: #1508430 --- diff --git a/neutron/common/utils.py b/neutron/common/utils.py index 47c25e6e6..63d83ab06 100644 --- a/neutron/common/utils.py +++ b/neutron/common/utils.py @@ -34,6 +34,7 @@ import sys import tempfile import uuid +import debtcollector from eventlet.green import subprocess from oslo_concurrency import lockutils from oslo_config import cfg @@ -111,6 +112,7 @@ class cache_method_results(object): return functools.partial(self.__call__, obj) +@debtcollector.removals.remove(message="Unused in Liberty release.") def read_cached_file(filename, cache_info, reload_func=None): """Read from a file if it has been modified. @@ -132,6 +134,7 @@ def read_cached_file(filename, cache_info, reload_func=None): return cache_info['data'] +@debtcollector.removals.remove(message="Unused in Liberty release.") def find_config_file(options, config_file): """Return the first config file found. @@ -379,6 +382,7 @@ def is_dvr_serviced(device_owner): device_owner in dvr_serviced_device_owners) +@debtcollector.removals.remove(message="Unused in Liberty release.") def get_keystone_url(conf): if conf.auth_uri: auth_uri = conf.auth_uri.rstrip('/')