summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorMichel Hermier <michel.hermier@gmail.com>2021-03-24 19:11:59 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-26 16:54:05 +0100
commit4ac49eabd53f719a9a69b8cd8db1987ca328ef9f (patch)
tree4631b8b0698898adfdc9676e542d3db41abd6472 /Kernel
parenta359f477a71d7d989f9baffb945e636a79723889 (diff)
downloadserenity-4ac49eabd53f719a9a69b8cd8db1987ca328ef9f.zip
Kernel: Remove unused FileBlockCondition::m_file.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/File.cpp1
-rw-r--r--Kernel/FileSystem/File.h8
2 files changed, 1 insertions, 8 deletions
diff --git a/Kernel/FileSystem/File.cpp b/Kernel/FileSystem/File.cpp
index ed141ff1d6..2ccaadd5fa 100644
--- a/Kernel/FileSystem/File.cpp
+++ b/Kernel/FileSystem/File.cpp
@@ -31,7 +31,6 @@
namespace Kernel {
File::File()
- : m_block_condition(*this)
{
}
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h
index c8bd71725b..53698e2ace 100644
--- a/Kernel/FileSystem/File.h
+++ b/Kernel/FileSystem/File.h
@@ -43,10 +43,7 @@ class File;
class FileBlockCondition : public Thread::BlockCondition {
public:
- FileBlockCondition(File& file)
- : m_file(file)
- {
- }
+ FileBlockCondition() { }
virtual bool should_add_blocker(Thread::Blocker& b, void* data) override
{
@@ -64,9 +61,6 @@ public:
return blocker.unblock(false, data);
});
}
-
-private:
- File& m_file;
};
// File is the base class for anything that can be referenced by a FileDescription.