summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-10 19:09:42 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-10 19:09:42 +1100
commit12d0731b91d8e58ba20ec28adf2d6c1aa995d74a (patch)
tree163a0c33896ecf15c978d81a4ee3e4392b82a236
parent70201f40386c42fec8bd20af06fe31a69f3af7db (diff)
downloadmicropython-12d0731b91d8e58ba20ec28adf2d6c1aa995d74a.tar.gz
micropython-12d0731b91d8e58ba20ec28adf2d6c1aa995d74a.zip
extmod/vfs_fat: Remove obsolete and unused str/len members.
-rw-r--r--cc3200/mptask.c2
-rw-r--r--extmod/vfs_fat.c2
-rw-r--r--extmod/vfs_fat.h2
-rw-r--r--stmhal/main.c4
4 files changed, 0 insertions, 10 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index 41264fbd06..3c49a56035 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -302,8 +302,6 @@ STATIC void mptask_init_sflash_filesystem (void) {
// Initialise the local flash filesystem.
// init the vfs object
fs_user_mount_t *vfs_fat = sflash_vfs_fat;
- vfs_fat->str = NULL;
- vfs_fat->len = 0;
vfs_fat->flags = 0;
pyb_flash_init_vfs(vfs_fat);
diff --git a/extmod/vfs_fat.c b/extmod/vfs_fat.c
index 82dd312b8f..8cd5a4674a 100644
--- a/extmod/vfs_fat.c
+++ b/extmod/vfs_fat.c
@@ -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);
vfs->base.type = type;
vfs->flags = FSUSER_FREE_OBJ;
- vfs->str = NULL;
- vfs->len = 0;
vfs->fatfs.drv = vfs;
// load block protocol methods
diff --git a/extmod/vfs_fat.h b/extmod/vfs_fat.h
index a5e3c604bf..7eb865254f 100644
--- a/extmod/vfs_fat.h
+++ b/extmod/vfs_fat.h
@@ -36,8 +36,6 @@
typedef struct _fs_user_mount_t {
mp_obj_base_t base;
- const char *str;
- uint16_t len; // length of str
uint16_t flags;
mp_obj_t readblocks[4];
mp_obj_t writeblocks[4];
diff --git a/stmhal/main.c b/stmhal/main.c
index 3c9906ad26..8d076a08b1 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -167,8 +167,6 @@ static const char fresh_readme_txt[] =
MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
// init the vfs object
fs_user_mount_t *vfs_fat = &fs_user_mount_flash;
- vfs_fat->str = NULL;
- vfs_fat->len = 0;
vfs_fat->flags = 0;
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) {
break;
}
- vfs_fat->str = NULL;
- vfs_fat->len = 0;
vfs_fat->flags = FSUSER_FREE_OBJ;
sdcard_init_vfs(vfs_fat, part_num);