소스 검색

Kernel: Remove an unnecessary InterruptDisabler in SynthFS.

Andreas Kling 6 년 전
부모
커밋
b5e5541cbc
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      Kernel/SyntheticFileSystem.cpp

+ 0 - 6
Kernel/SyntheticFileSystem.cpp

@@ -3,11 +3,6 @@
 #include <LibC/errno_numbers.h>
 #include <AK/StdLibExtras.h>
 
-#ifndef SERENITY
-typedef int InterruptDisabler;
-#define ASSERT_INTERRUPTS_DISABLED()
-#endif
-
 //#define SYNTHFS_DEBUG
 
 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
 {
-    InterruptDisabler disabler;
 #ifdef SYNTHFS_DEBUG
     kprintf("SynthFS: traverse_as_directory %u\n", index());
 #endif