Remove std::os::wasi::fs::FileExt::tell
Following #137165 (Use `tell` for `<File as Seek>::stream_position`), `tell` is now directly exposed via `stream_position`, making `<File as FileExt>::tell` redundant. Remove it.
This commit is contained in:
parent
de91711756
commit
d2f15971de
1 changed files with 0 additions and 11 deletions
|
@ -162,13 +162,6 @@ pub trait FileExt {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// Returns the current position within the file.
|
||||
///
|
||||
/// This corresponds to the `fd_tell` syscall and is similar to
|
||||
/// `seek` where you offset 0 bytes from the current position.
|
||||
#[doc(alias = "fd_tell")]
|
||||
fn tell(&self) -> io::Result<u64>;
|
||||
|
||||
/// Adjusts the flags associated with this file.
|
||||
///
|
||||
/// This corresponds to the `fd_fdstat_set_flags` syscall.
|
||||
|
@ -240,10 +233,6 @@ impl FileExt for fs::File {
|
|||
self.as_inner().as_inner().pwrite(bufs, offset)
|
||||
}
|
||||
|
||||
fn tell(&self) -> io::Result<u64> {
|
||||
self.as_inner().as_inner().tell()
|
||||
}
|
||||
|
||||
fn fdstat_set_flags(&self, flags: u16) -> io::Result<()> {
|
||||
self.as_inner().as_inner().set_flags(flags)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue