summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Guo <eric.guo@easystack.cn>2014-01-04 10:48:07 +0800
committerEric Guo <eric.guo@easystack.cn>2014-01-04 10:52:13 +0800
commit0f25ec85f7d9d5b5128e1f54e9ed269a3cd5ae27 (patch)
treede574463608a3d8e02c9e07f3f2a364463fab883
parent5f20fd64eb0de5c02245944f7c6e7c865b4ac78d (diff)
downloadironic-0f25ec85f7d9d5b5128e1f54e9ed269a3cd5ae27.tar.gz
Remove unused dict BYTE_MULTIPLIERS
Dict BYTE_MULTIPLIERS in ironic/common/utils.py isn't used anywhere, and ironic/openstack/common/strutils.py includes this dict, So we can use the one in oslo if we need. It's safe to remove it now. Change-Id: Iff96369057741c9a5b97fe44be7e6dd77c21ee82
-rw-r--r--ironic/common/utils.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ironic/common/utils.py b/ironic/common/utils.py
index 765e07788..3791fcf8f 100644
--- a/ironic/common/utils.py
+++ b/ironic/common/utils.py
@@ -54,16 +54,6 @@ CONF.register_opts(utils_opts)
LOG = logging.getLogger(__name__)
-# Used for looking up extensions of text
-# to their 'multiplied' byte amount
-BYTE_MULTIPLIERS = {
- '': 1,
- 't': 1024 ** 4,
- 'g': 1024 ** 3,
- 'm': 1024 ** 2,
- 'k': 1024,
-}
-
def _get_root_helper():
return 'sudo ironic-rootwrap %s' % CONF.rootwrap_config