Remove DirHandle deprecated APIs

pull/12553/head
Rajkumar Kanagaraj 2020-03-02 15:42:31 -08:00
parent 744889a472
commit dd9afdf77c
1 changed files with 0 additions and 62 deletions

View File

@ -105,68 +105,6 @@ public:
delete ent;
return size;
}
/** Closes the directory.
*
* @returns
* 0 on success,
* -1 on error.
* @deprecated Replaced by `int DirHandle::close()'
*/
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by DirHandle::close")
virtual int closedir()
{
return close();
};
/** Returns the directory entry at the current position, and
* advances the position to the next entry.
*
* @returns
* A pointer to a dirent structure representing the
* directory entry at the current position, or NULL on reaching
* end of directory or error.
* @deprecated Replaced by `ssize_t DirHandle::read(struct dirent *ent)
*/
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by DirHandle::read")
virtual struct dirent *readdir()
{
static struct dirent ent;
return (read(&ent) > 0) ? &ent : NULL;
}
/** Resets the position to the beginning of the directory.
* @deprecated Replaced by `void DirHandle::rewind()'
*/
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by DirHandle::rewind")
virtual void rewinddir()
{
rewind();
}
/** Returns the current position of the DirHandle.
*
* @returns
* the current position,
* -1 on error.
* @deprecated Replaced by `off_t DirHandle::tell()'
*/
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by DirHandle::tell")
virtual off_t telldir()
{
return tell();
}
/** Sets the position of the DirHandle.
*
* @param location The location to seek to. Must be a value returned by telldir.
* @deprecated Replaced by `void DirHandle::seek(off_t offset)'
*/
MBED_DEPRECATED_SINCE("mbed-os-5.4", "Replaced by DirHandle::seek")
virtual void seekdir(off_t location)
{
seek(location);
}
};
/**@}*/