summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 966dde667..8d7ff1f64 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -337,24 +337,6 @@ def str_dict_replace(s, mapping):
return s
-def mktmpfile(dir):
- """create tmpfile under dir, and return filename."""
- filename = datetime.datetime.utcnow().strftime('%Y%m%d%H%M%S')
- fpath = os.path.join(dir, filename)
- open(fpath, 'a+').write(fpath + '\n')
- return fpath
-
-
-def exists(filename):
- """check file path existence."""
- return os.path.exists(filename)
-
-
-def remove(filename):
- """remove file."""
- return os.remove(filename)
-
-
class LazyPluggable(object):
"""A pluggable backend loaded lazily based on some value."""