kopia lustrzana https://github.com/micropython/micropython
extmod/vfs_fat: Remove obsolete and unused str/len members.
rodzic
70201f4038
commit
12d0731b91
|
@ -302,8 +302,6 @@ STATIC void mptask_init_sflash_filesystem (void) {
|
||||||
// Initialise the local flash filesystem.
|
// Initialise the local flash filesystem.
|
||||||
// init the vfs object
|
// init the vfs object
|
||||||
fs_user_mount_t *vfs_fat = sflash_vfs_fat;
|
fs_user_mount_t *vfs_fat = sflash_vfs_fat;
|
||||||
vfs_fat->str = NULL;
|
|
||||||
vfs_fat->len = 0;
|
|
||||||
vfs_fat->flags = 0;
|
vfs_fat->flags = 0;
|
||||||
pyb_flash_init_vfs(vfs_fat);
|
pyb_flash_init_vfs(vfs_fat);
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,6 @@ STATIC mp_obj_t fat_vfs_make_new(const mp_obj_type_t *type, size_t n_args, size_
|
||||||
fs_user_mount_t *vfs = m_new_obj(fs_user_mount_t);
|
fs_user_mount_t *vfs = m_new_obj(fs_user_mount_t);
|
||||||
vfs->base.type = type;
|
vfs->base.type = type;
|
||||||
vfs->flags = FSUSER_FREE_OBJ;
|
vfs->flags = FSUSER_FREE_OBJ;
|
||||||
vfs->str = NULL;
|
|
||||||
vfs->len = 0;
|
|
||||||
vfs->fatfs.drv = vfs;
|
vfs->fatfs.drv = vfs;
|
||||||
|
|
||||||
// load block protocol methods
|
// load block protocol methods
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
|
|
||||||
typedef struct _fs_user_mount_t {
|
typedef struct _fs_user_mount_t {
|
||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
const char *str;
|
|
||||||
uint16_t len; // length of str
|
|
||||||
uint16_t flags;
|
uint16_t flags;
|
||||||
mp_obj_t readblocks[4];
|
mp_obj_t readblocks[4];
|
||||||
mp_obj_t writeblocks[4];
|
mp_obj_t writeblocks[4];
|
||||||
|
|
|
@ -167,8 +167,6 @@ static const char fresh_readme_txt[] =
|
||||||
MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
|
MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
|
||||||
// init the vfs object
|
// init the vfs object
|
||||||
fs_user_mount_t *vfs_fat = &fs_user_mount_flash;
|
fs_user_mount_t *vfs_fat = &fs_user_mount_flash;
|
||||||
vfs_fat->str = NULL;
|
|
||||||
vfs_fat->len = 0;
|
|
||||||
vfs_fat->flags = 0;
|
vfs_fat->flags = 0;
|
||||||
pyb_flash_init_vfs(vfs_fat);
|
pyb_flash_init_vfs(vfs_fat);
|
||||||
|
|
||||||
|
@ -274,8 +272,6 @@ STATIC bool init_sdcard_fs(bool first_soft_reset) {
|
||||||
if (vfs == NULL || vfs_fat == NULL) {
|
if (vfs == NULL || vfs_fat == NULL) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
vfs_fat->str = NULL;
|
|
||||||
vfs_fat->len = 0;
|
|
||||||
vfs_fat->flags = FSUSER_FREE_OBJ;
|
vfs_fat->flags = FSUSER_FREE_OBJ;
|
||||||
sdcard_init_vfs(vfs_fat, part_num);
|
sdcard_init_vfs(vfs_fat, part_num);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue