Skip to content

Commit 40fb45e

Browse files
authored
Merge pull request #12549 from rajkan01/fh_remove_deprecated
Remove FileHandle deprecated APIs
2 parents 6137c98 + 13a1130 commit 40fb45e

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

platform/FileHandle.h

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -153,50 +153,6 @@ class FileHandle : private NonCopyable<FileHandle> {
153153
return -EINVAL;
154154
}
155155

156-
/** Move the file position to a given offset from a given location.
157-
*
158-
* @param offset The offset from whence to move to
159-
* @param whence SEEK_SET for the start of the file, SEEK_CUR for the
160-
* current file position, or SEEK_END for the end of the file.
161-
*
162-
* @returns
163-
* new file position on success,
164-
* -1 on failure or unsupported
165-
* @deprecated Replaced by `off_t FileHandle::seek(off_t offset, int whence = SEEK_SET)'
166-
*
167-
*/
168-
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by FileHandle::seek")
169-
virtual off_t lseek(off_t offset, int whence)
170-
{
171-
return seek(offset, whence);
172-
}
173-
174-
/** Flush any buffers associated with the FileHandle, ensuring it
175-
* is up to date on disk
176-
*
177-
* @returns
178-
* 0 on success or un-needed,
179-
* -1 on error
180-
* @deprecated Replaced by `int FileHandle::sync()'
181-
*/
182-
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by FileHandle::sync")
183-
virtual int fsync()
184-
{
185-
return sync();
186-
}
187-
188-
/** Find the length of the file
189-
*
190-
* @returns
191-
* Length of the file
192-
* @deprecated Replaced by `off_t FileHandle::size()'
193-
*/
194-
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by FileHandle::size")
195-
virtual off_t flen()
196-
{
197-
return size();
198-
}
199-
200156
/** Set blocking or nonblocking mode of the file operation like read/write.
201157
* Definition depends on the subclass implementing FileHandle.
202158
* The default is blocking.

0 commit comments

Comments
 (0)