Skip to content

Commit 12d0731

Browse files
committed
extmod/vfs_fat: Remove obsolete and unused str/len members.
1 parent 70201f4 commit 12d0731

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

cc3200/mptask.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ STATIC void mptask_init_sflash_filesystem (void) {
302302
// Initialise the local flash filesystem.
303303
// init the vfs object
304304
fs_user_mount_t *vfs_fat = sflash_vfs_fat;
305-
vfs_fat->str = NULL;
306-
vfs_fat->len = 0;
307305
vfs_fat->flags = 0;
308306
pyb_flash_init_vfs(vfs_fat);
309307

extmod/vfs_fat.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ STATIC mp_obj_t fat_vfs_make_new(const mp_obj_type_t *type, size_t n_args, size_
5555
fs_user_mount_t *vfs = m_new_obj(fs_user_mount_t);
5656
vfs->base.type = type;
5757
vfs->flags = FSUSER_FREE_OBJ;
58-
vfs->str = NULL;
59-
vfs->len = 0;
6058
vfs->fatfs.drv = vfs;
6159

6260
// load block protocol methods

extmod/vfs_fat.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
typedef struct _fs_user_mount_t {
3838
mp_obj_base_t base;
39-
const char *str;
40-
uint16_t len; // length of str
4139
uint16_t flags;
4240
mp_obj_t readblocks[4];
4341
mp_obj_t writeblocks[4];

stmhal/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ static const char fresh_readme_txt[] =
167167
MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
168168
// init the vfs object
169169
fs_user_mount_t *vfs_fat = &fs_user_mount_flash;
170-
vfs_fat->str = NULL;
171-
vfs_fat->len = 0;
172170
vfs_fat->flags = 0;
173171
pyb_flash_init_vfs(vfs_fat);
174172

@@ -274,8 +272,6 @@ STATIC bool init_sdcard_fs(bool first_soft_reset) {
274272
if (vfs == NULL || vfs_fat == NULL) {
275273
break;
276274
}
277-
vfs_fat->str = NULL;
278-
vfs_fat->len = 0;
279275
vfs_fat->flags = FSUSER_FREE_OBJ;
280276
sdcard_init_vfs(vfs_fat, part_num);
281277

0 commit comments

Comments
 (0)