Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
12d0731b
Commit
12d0731b
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
extmod/vfs_fat: Remove obsolete and unused str/len members.
parent
70201f40
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
cc3200/mptask.c
+0
-2
0 additions, 2 deletions
cc3200/mptask.c
extmod/vfs_fat.c
+0
-2
0 additions, 2 deletions
extmod/vfs_fat.c
extmod/vfs_fat.h
+0
-2
0 additions, 2 deletions
extmod/vfs_fat.h
stmhal/main.c
+0
-4
0 additions, 4 deletions
stmhal/main.c
with
0 additions
and
10 deletions
cc3200/mptask.c
+
0
−
2
View file @
12d0731b
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
extmod/vfs_fat.c
+
0
−
2
View file @
12d0731b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
extmod/vfs_fat.h
+
0
−
2
View file @
12d0731b
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
stmhal/main.c
+
0
−
4
View file @
12d0731b
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment