From 8022adb7342b09886f53c91c12d0b37986fbf35c Mon Sep 17 00:00:00 2001 From: Bogdan Tabor Date: Wed, 21 Oct 2015 15:40:14 +0200 Subject: [PATCH] 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 --- neutron/common/utils.py | 4 ++++ 1 file changed, 4 insertions(+) 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('/') -- 2.45.2