Skip to content

Commit 2548910

Browse files
author
Philip Meier
committed
removed unused code
1 parent caaafbf commit 2548910

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

torchvision/datasets/imagenet.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,3 @@ def parse_val_archive(archive, wnids=None, folder=None):
207207
for wnid, img_file in zip(wnids, img_files):
208208
shutil.move(img_file, os.path.join(folder, wnid, os.path.basename(img_file)))
209209

210-
211-
def _splitexts(root):
212-
exts = []
213-
ext = '.'
214-
while ext:
215-
root, ext = os.path.splitext(root)
216-
exts.append(ext)
217-
return root, ''.join(reversed(exts))

0 commit comments

Comments
 (0)