mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:25:09 +00:00
Kernel: Remove unused FileBlockCondition::m_file.
This commit is contained in:
parent
a359f477a7
commit
4ac49eabd5
2 changed files with 1 additions and 8 deletions
|
@ -31,7 +31,6 @@
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
File::File()
|
File::File()
|
||||||
: m_block_condition(*this)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,10 +43,7 @@ class File;
|
||||||
|
|
||||||
class FileBlockCondition : public Thread::BlockCondition {
|
class FileBlockCondition : public Thread::BlockCondition {
|
||||||
public:
|
public:
|
||||||
FileBlockCondition(File& file)
|
FileBlockCondition() { }
|
||||||
: m_file(file)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual bool should_add_blocker(Thread::Blocker& b, void* data) override
|
virtual bool should_add_blocker(Thread::Blocker& b, void* data) override
|
||||||
{
|
{
|
||||||
|
@ -64,9 +61,6 @@ public:
|
||||||
return blocker.unblock(false, data);
|
return blocker.unblock(false, data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
File& m_file;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// File is the base class for anything that can be referenced by a FileDescription.
|
// File is the base class for anything that can be referenced by a FileDescription.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue