Skip to content

Commit a59a319

Browse files
authored
Merge pull request #4466 from geky/cleanup
Clean up dead classes in retarget layer
2 parents ecc737e + 5bd070a commit a59a319

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

platform/FileSystemLike.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class FileSystemLike : public FileSystemHandle, public FileBase {
4444

4545
// Inherited functions with name conflicts
4646
using FileSystemHandle::open;
47-
using FileSystemHandle::open;
4847

4948
/** Open a file on the filesystem
5049
*

platform/mbed_retarget.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -164,25 +164,6 @@ static inline int openmode_to_posix(int openmode) {
164164
return posix;
165165
}
166166

167-
// Internally used file objects with managed memory on close
168-
class ManagedFile : public FileHandle {
169-
public:
170-
virtual int close() {
171-
int err = FileHandle::close();
172-
delete this;
173-
return err;
174-
}
175-
};
176-
177-
class ManagedDir : public DirHandle {
178-
public:
179-
virtual int close() {
180-
int err = DirHandle::close();
181-
delete this;
182-
return err;
183-
}
184-
};
185-
186167
/* @brief standard c library fopen() retargeting function.
187168
*
188169
* This function is invoked by the standard c library retargeting to handle fopen()

0 commit comments

Comments
 (0)