Skip to content

Commit 179a52e

Browse files
committed
remove unused code
1 parent 216b310 commit 179a52e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

shared-bindings/storage/__init__.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,6 @@ static mp_obj_t storage_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t
6060
// Currently, the only supported filesystem is VfsFat.
6161
mp_arg_validate_type(vfs_obj, &mp_fat_vfs_type, MP_QSTR_filesystem);
6262

63-
// Add this back if/when we start supporting other filesystems.
64-
#if 0
65-
// Make sure we're given an object we can mount.
66-
// TODO(tannewt): Make sure we have all the methods we need to operating it
67-
// as a file system.
68-
mp_obj_t dest[2];
69-
mp_load_method_maybe(vfs_obj, MP_QSTR_mount, dest);
70-
if (dest[0] == MP_OBJ_NULL) {
71-
mp_raise_ValueError(MP_ERROR_TEXT("filesystem must provide mount method"));
72-
}
73-
#endif
74-
7563
common_hal_storage_mount(vfs_obj, mnt_str, args[ARG_readonly].u_bool);
7664

7765
return mp_const_none;

0 commit comments

Comments
 (0)