Skip to content

Commit c703c99

Browse files
committed
remove unneeded code
1 parent 6ef99f6 commit c703c99

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/wrapfs.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ def copy(self, src_path, dst_path, overwrite=False, preserve_time=False):
267267
# type: (Text, Text, bool, bool) -> None
268268
src_fs, _src_path = self.delegate_path(src_path)
269269
dst_fs, _dst_path = self.delegate_path(dst_path)
270-
_val_src_path = self.validatepath(_src_path)
271-
_val_dst_path = self.validatepath(_dst_path)
272270
with unwrap_errors({_src_path: src_path, _dst_path: dst_path}):
273271
if not overwrite and dst_fs.exists(_dst_path):
274272
raise errors.DestinationExists(_dst_path)
@@ -278,8 +276,6 @@ def copydir(self, src_path, dst_path, create=False, preserve_time=False):
278276
# type: (Text, Text, bool, bool) -> None
279277
src_fs, _src_path = self.delegate_path(src_path)
280278
dst_fs, _dst_path = self.delegate_path(dst_path)
281-
_val_src_path = self.validatepath(_src_path)
282-
_val_dst_path = self.validatepath(_dst_path)
283279
with unwrap_errors({_src_path: src_path, _dst_path: dst_path}):
284280
if not create and not dst_fs.exists(_dst_path):
285281
raise errors.ResourceNotFound(dst_path)

0 commit comments

Comments
 (0)