Sfoglia il codice sorgente

Kernel: Remove an unnecessary InterruptDisabler in SynthFS.

Andreas Kling 6 anni fa
parent
commit
b5e5541cbc
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. 0 6
      Kernel/SyntheticFileSystem.cpp

+ 0 - 6
Kernel/SyntheticFileSystem.cpp

@@ -3,11 +3,6 @@
 #include <LibC/errno_numbers.h>
 #include <LibC/errno_numbers.h>
 #include <AK/StdLibExtras.h>
 #include <AK/StdLibExtras.h>
 
 
-#ifndef SERENITY
-typedef int InterruptDisabler;
-#define ASSERT_INTERRUPTS_DISABLED()
-#endif
-
 //#define SYNTHFS_DEBUG
 //#define SYNTHFS_DEBUG
 
 
 RetainPtr<SynthFS> SynthFS::create()
 RetainPtr<SynthFS> SynthFS::create()
@@ -223,7 +218,6 @@ ssize_t SynthFSInode::read_bytes(off_t offset, size_t count, byte* buffer, FileD
 
 
 bool SynthFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&)> callback) const
 bool SynthFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&)> callback) const
 {
 {
-    InterruptDisabler disabler;
 #ifdef SYNTHFS_DEBUG
 #ifdef SYNTHFS_DEBUG
     kprintf("SynthFS: traverse_as_directory %u\n", index());
     kprintf("SynthFS: traverse_as_directory %u\n", index());
 #endif
 #endif