diff options
author | Luis Pabon <lpabon@redhat.com> | 2013-07-08 15:47:46 -0400 |
---|---|---|
committer | Peter Portante <pportant@redhat.com> | 2013-07-09 04:11:29 -0700 |
commit | a737372032874dba4dcc4dcb45d20ba400b328f7 (patch) | |
tree | 8401b75da957d91784b94d09044b916eca727da7 /gluster | |
parent | 8f46de60d8f2e535607250e72dfbef40f887bc27 (diff) |
Removed unused metadata key and do_rmdir func
Change-Id: Ibcef5d817390a11d85cf125bb9addfbfded1b019
Signed-off-by: Luis Pabon <lpabon@redhat.com>
Reviewed-on: http://review.gluster.org/5301
Reviewed-by: Mohammed Junaid <junaid@redhat.com>
Reviewed-by: Peter Portante <pportant@redhat.com>
Tested-by: Peter Portante <pportant@redhat.com>
Diffstat (limited to 'gluster')
-rw-r--r-- | gluster/swift/common/fs_utils.py | 13 | ||||
-rw-r--r-- | gluster/swift/common/utils.py | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/gluster/swift/common/fs_utils.py b/gluster/swift/common/fs_utils.py index b3f58b7..4de58e4 100644 --- a/gluster/swift/common/fs_utils.py +++ b/gluster/swift/common/fs_utils.py @@ -137,19 +137,6 @@ def do_unlink(path, log=True): return True -def do_rmdir(path): - try: - os.rmdir(path) - except OSError as err: - if err.errno != errno.ENOENT: - logging.exception("Rmdir failed on %s err: %s", path, err.strerror) - raise - res = False - else: - res = True - return res - - def do_rename(old_path, new_path): try: os.rename(old_path, new_path) diff --git a/gluster/swift/common/utils.py b/gluster/swift/common/utils.py index c943777..40ede7e 100644 --- a/gluster/swift/common/utils.py +++ b/gluster/swift/common/utils.py @@ -49,7 +49,6 @@ ASYNCDIR = 'async_pending' # Keep in sync with swift.obj.server.ASYNCDIR FILE = 'file' FILE_TYPE = 'application/octet-stream' OBJECT = 'Object' -OBJECT_TYPE = 'application/octet-stream' DEFAULT_UID = -1 DEFAULT_GID = -1 PICKLE_PROTOCOL = 2 |