@@ -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