Bladeren bron

Kernel: Remove unused FileBlockCondition::m_file.

Michel Hermier 4 jaren geleden
bovenliggende
commit
4ac49eabd5
2 gewijzigde bestanden met toevoegingen van 1 en 8 verwijderingen
  1. 0 1
      Kernel/FileSystem/File.cpp
  2. 1 7
      Kernel/FileSystem/File.h

+ 0 - 1
Kernel/FileSystem/File.cpp

@@ -31,7 +31,6 @@
 namespace Kernel {
 
 File::File()
-    : m_block_condition(*this)
 {
 }
 

+ 1 - 7
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.