mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 15:08:12 +00:00
Kernel: Remove unused Process::FileDescriptions::fd_flags()
This commit is contained in:
parent
9ccc77092d
commit
0910979dec
2 changed files with 0 additions and 11 deletions
|
@ -433,16 +433,6 @@ RefPtr<FileDescription> Process::FileDescriptions::file_description(int fd) cons
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
int Process::FileDescriptions::fd_flags(int fd) const
|
||||
{
|
||||
ScopedSpinLock lock(m_fds_lock);
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
if (static_cast<size_t>(fd) < m_fds_metadatas.size())
|
||||
return m_fds_metadatas[fd].flags();
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Process::FileDescriptions::enumerate(Function<void(const FileDescriptionAndFlags&)> callback) const
|
||||
{
|
||||
ScopedSpinLock lock(m_fds_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue