From b53ea0a11c9e2b6a6329f12e8a8cf58d6606da17 Mon Sep 17 00:00:00 2001 From: meejah Date: Mon, 23 Apr 2018 10:50:14 -0600 Subject: [PATCH] redundant --- src/allmydata/frontends/magic_folder.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 162037594..3b355c5c1 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -1046,10 +1046,6 @@ class WriteFileMixin(object): return self._rename_conflicted_file(abspath_u, replacement_path_u) else: try: - # XXX FIXME why ever bother with "rename_no_overwrite" - # under the hood in replace_file() then..? - if os.path.exists(abspath_u): - os.unlink(abspath_u) fileutil.replace_file(abspath_u, replacement_path_u) return abspath_u except fileutil.ConflictError as e: