mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Remove unused Process::FileDescriptions::fd_flags()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user