Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
196406e1
Commit
196406e1
authored
Jan 29, 2017
by
Damien George
Browse files
extmod/vfs_fat: Remove unused fatfs_builtin_open function.
parent
b697c890
Changes
2
Hide whitespace changes
Inline
Side-by-side
extmod/vfs_fat.h
View file @
196406e1
...
...
@@ -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
);
...
...
extmod/vfs_fat_file.c
View file @
196406e1
...
...
@@ -289,14 +289,6 @@ const mp_obj_type_t mp_type_textio = {
.
locals_dict
=
(
mp_obj_dict_t
*
)
&
rawfile_locals_dict
,
};
// 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment