Skip to content

Commit 196406e

Browse files
committed
extmod/vfs_fat: Remove unused fatfs_builtin_open function.
1 parent b697c89 commit 196406e

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

extmod/vfs_fat.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ extern const byte fresult_to_errno_table[20];
5656
extern const mp_obj_type_t mp_fat_vfs_type;
5757

5858
mp_import_stat_t fat_vfs_import_stat(struct _fs_user_mount_t *vfs, const char *path);
59-
mp_obj_t fatfs_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs);
6059
mp_obj_t fatfs_builtin_open_self(mp_obj_t self_in, mp_obj_t path, mp_obj_t mode);
6160
MP_DECLARE_CONST_FUN_OBJ_KW(mp_builtin_open_obj);
6261

extmod/vfs_fat_file.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,6 @@ const mp_obj_type_t mp_type_textio = {
289289
.locals_dict = (mp_obj_dict_t*)&rawfile_locals_dict,
290290
};
291291

292-
// Factory function for I/O stream classes
293-
mp_obj_t fatfs_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
294-
// TODO: analyze buffering args and instantiate appropriate type
295-
mp_arg_val_t arg_vals[FILE_OPEN_NUM_ARGS];
296-
mp_arg_parse_all(n_args, args, kwargs, FILE_OPEN_NUM_ARGS, file_open_args, arg_vals);
297-
return file_open(NULL, &mp_type_textio, arg_vals);
298-
}
299-
300292
// Factory function for I/O stream classes
301293
mp_obj_t fatfs_builtin_open_self(mp_obj_t self_in, mp_obj_t path, mp_obj_t mode) {
302294
// TODO: analyze buffering args and instantiate appropriate type

0 commit comments

Comments
 (0)