]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Mark for removal deadcode in neutron.common.utils
authorBogdan Tabor <bogdan.tabor@ericpol.com>
Wed, 21 Oct 2015 13:40:14 +0000 (15:40 +0200)
committerBogdan Tabor <bogdan.tabor@ericpol.com>
Thu, 22 Oct 2015 15:22:28 +0000 (17:22 +0200)
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

index 47c25e6e614a4f3bf83775db8a2d20ed8e9f7900..63d83ab06618954386100f6315160d4001002ec7 100644 (file)
@@ -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('/')