diff --git a/platform/FileSystemLike.h b/platform/FileSystemLike.h index e2b18f8859..65707039d9 100644 --- a/platform/FileSystemLike.h +++ b/platform/FileSystemLike.h @@ -44,7 +44,6 @@ public: // Inherited functions with name conflicts using FileSystemHandle::open; - using FileSystemHandle::open; /** Open a file on the filesystem * diff --git a/platform/mbed_retarget.cpp b/platform/mbed_retarget.cpp index e4c2930a6b..30397936a7 100644 --- a/platform/mbed_retarget.cpp +++ b/platform/mbed_retarget.cpp @@ -164,25 +164,6 @@ static inline int openmode_to_posix(int openmode) { return posix; } -// Internally used file objects with managed memory on close -class ManagedFile : public FileHandle { -public: - virtual int close() { - int err = FileHandle::close(); - delete this; - return err; - } -}; - -class ManagedDir : public DirHandle { -public: - virtual int close() { - int err = DirHandle::close(); - delete this; - return err; - } -}; - /* @brief standard c library fopen() retargeting function. * * This function is invoked by the standard c library retargeting to handle fopen()