Skip to content

Commit 2a1c641

Browse files
committed
Remove FileSystemLike deprecated APIs
1 parent 744889a commit 2a1c641

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

platform/FileSystemLike.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -48,40 +48,6 @@ class FileSystemLike : public FileSystemHandle, public FileBase, private NonCopy
4848
FileSystemLike(const char *name = NULL) : FileBase(name, FileSystemPathType) {}
4949
virtual ~FileSystemLike() {}
5050

51-
// Inherited functions with name conflicts
52-
using FileSystemHandle::open;
53-
54-
/** Open a file on the filesystem
55-
*
56-
* @param path The name of the file to open
57-
* @param flags The flags to open the file in, one of O_RDONLY, O_WRONLY, O_RDWR,
58-
* bitwise or'd with one of O_CREAT, O_TRUNC, O_APPEND
59-
* @return A file handle on success, NULL on failure
60-
* @deprecated Replaced by `int open(FileHandle **, ...)` for propagating error codes
61-
*/
62-
MBED_DEPRECATED_SINCE("mbed-os-5.5",
63-
"Replaced by `int open(FileHandle **, ...)` for propagating error codes")
64-
FileHandle *open(const char *path, int flags)
65-
{
66-
FileHandle *file;
67-
int err = open(&file, path, flags);
68-
return err ? NULL : file;
69-
}
70-
71-
/** Open a directory on the filesystem
72-
*
73-
* @param path Name of the directory to open
74-
* @return A directory handle on success, NULL on failure
75-
* @deprecated Replaced by `int open(DirHandle **, ...)` for propagating error codes
76-
*/
77-
MBED_DEPRECATED_SINCE("mbed-os-5.5",
78-
"Replaced by `int open(DirHandle **, ...)` for propagating error codes")
79-
DirHandle *opendir(const char *path)
80-
{
81-
DirHandle *dir;
82-
int err = open(&dir, path);
83-
return err ? NULL : dir;
84-
}
8551
};
8652

8753
/**@}*/

0 commit comments

Comments
 (0)