Skip to content

Commit

Permalink
Remove FileSystemLike deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkan01 committed Mar 3, 2020
1 parent 744889a commit 2a1c641
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions platform/FileSystemLike.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,40 +48,6 @@ class FileSystemLike : public FileSystemHandle, public FileBase, private NonCopy
FileSystemLike(const char *name = NULL) : FileBase(name, FileSystemPathType) {}
virtual ~FileSystemLike() {}

// Inherited functions with name conflicts
using FileSystemHandle::open;

/** Open a file on the filesystem
*
* @param path The name of the file to open
* @param flags The flags to open the file in, one of O_RDONLY, O_WRONLY, O_RDWR,
* bitwise or'd with one of O_CREAT, O_TRUNC, O_APPEND
* @return A file handle on success, NULL on failure
* @deprecated Replaced by `int open(FileHandle **, ...)` for propagating error codes
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5",
"Replaced by `int open(FileHandle **, ...)` for propagating error codes")
FileHandle *open(const char *path, int flags)
{
FileHandle *file;
int err = open(&file, path, flags);
return err ? NULL : file;
}

/** Open a directory on the filesystem
*
* @param path Name of the directory to open
* @return A directory handle on success, NULL on failure
* @deprecated Replaced by `int open(DirHandle **, ...)` for propagating error codes
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5",
"Replaced by `int open(DirHandle **, ...)` for propagating error codes")
DirHandle *opendir(const char *path)
{
DirHandle *dir;
int err = open(&dir, path);
return err ? NULL : dir;
}
};

/**@}*/
Expand Down

0 comments on commit 2a1c641

Please sign in to comment.