diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-29 19:50:16 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-30 12:26:08 +1100 |
commit | 196406e17a45dd87f12c2a1d7c97a67bb9dcb04f (patch) | |
tree | 31d55d2fba8ed89ee9928b646d2967a4241ef896 | |
parent | b697c890096805d9ccaf7553dbff5b82f5332609 (diff) | |
download | micropython-196406e17a45dd87f12c2a1d7c97a67bb9dcb04f.tar.gz micropython-196406e17a45dd87f12c2a1d7c97a67bb9dcb04f.zip |
extmod/vfs_fat: Remove unused fatfs_builtin_open function.
-rw-r--r-- | extmod/vfs_fat.h | 1 | ||||
-rw-r--r-- | extmod/vfs_fat_file.c | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/extmod/vfs_fat.h b/extmod/vfs_fat.h index fefae776c9..0eb963d166 100644 --- a/extmod/vfs_fat.h +++ b/extmod/vfs_fat.h @@ -56,7 +56,6 @@ extern const byte fresult_to_errno_table[20]; extern const mp_obj_type_t mp_fat_vfs_type; mp_import_stat_t fat_vfs_import_stat(struct _fs_user_mount_t *vfs, const char *path); -mp_obj_t fatfs_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs); mp_obj_t fatfs_builtin_open_self(mp_obj_t self_in, mp_obj_t path, mp_obj_t mode); MP_DECLARE_CONST_FUN_OBJ_KW(mp_builtin_open_obj); diff --git a/extmod/vfs_fat_file.c b/extmod/vfs_fat_file.c index 0f2a7a1aa4..62da23f948 100644 --- a/extmod/vfs_fat_file.c +++ b/extmod/vfs_fat_file.c @@ -290,14 +290,6 @@ const mp_obj_type_t mp_type_textio = { }; // Factory function for I/O stream classes -mp_obj_t fatfs_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { - // TODO: analyze buffering args and instantiate appropriate type - mp_arg_val_t arg_vals[FILE_OPEN_NUM_ARGS]; - mp_arg_parse_all(n_args, args, kwargs, FILE_OPEN_NUM_ARGS, file_open_args, arg_vals); - return file_open(NULL, &mp_type_textio, arg_vals); -} - -// Factory function for I/O stream classes mp_obj_t fatfs_builtin_open_self(mp_obj_t self_in, mp_obj_t path, mp_obj_t mode) { // TODO: analyze buffering args and instantiate appropriate type fs_user_mount_t *self = MP_OBJ_TO_PTR(self_in); |