mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +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;
|
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
|
void Process::FileDescriptions::enumerate(Function<void(const FileDescriptionAndFlags&)> callback) const
|
||||||
{
|
{
|
||||||
ScopedSpinLock lock(m_fds_lock);
|
ScopedSpinLock lock(m_fds_lock);
|
||||||
|
|
|
@ -663,7 +663,6 @@ public:
|
||||||
|
|
||||||
// FIXME: Consider to remove this somehow
|
// FIXME: Consider to remove this somehow
|
||||||
RefPtr<FileDescription> file_description(int fd) const;
|
RefPtr<FileDescription> file_description(int fd) const;
|
||||||
int fd_flags(int fd) const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FileDescriptions() = default;
|
FileDescriptions() = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue