From 79090c264874abb46e8cc5eb132da93b06808f67 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 1 Apr 2023 02:14:49 +0300 Subject: [PATCH] Kernel: cleanup includes I went quickly went through all files since I found some weird includes :D --- kernel/include/kernel/Device.h | 1 - kernel/include/kernel/Thread.h | 2 +- kernel/kernel/FS/Ext2.cpp | 1 - kernel/kernel/FS/VirtualFileSystem.cpp | 1 - kernel/kernel/Input/PS2Controller.cpp | 2 -- kernel/kernel/PIT.cpp | 1 - kernel/kernel/Semaphore.cpp | 1 - 7 files changed, 1 insertion(+), 8 deletions(-) diff --git a/kernel/include/kernel/Device.h b/kernel/include/kernel/Device.h index f6959e61..ff6a3765 100644 --- a/kernel/include/kernel/Device.h +++ b/kernel/include/kernel/Device.h @@ -1,6 +1,5 @@ #pragma once -#include #include namespace Kernel diff --git a/kernel/include/kernel/Thread.h b/kernel/include/kernel/Thread.h index 5821fd42..5e4139e3 100644 --- a/kernel/include/kernel/Thread.h +++ b/kernel/include/kernel/Thread.h @@ -1,6 +1,6 @@ #pragma once -#include +#include #include #include diff --git a/kernel/kernel/FS/Ext2.cpp b/kernel/kernel/FS/Ext2.cpp index c9bdc8cd..58bdd31e 100644 --- a/kernel/kernel/FS/Ext2.cpp +++ b/kernel/kernel/FS/Ext2.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include #define EXT2_DEBUG_PRINT 0 diff --git a/kernel/kernel/FS/VirtualFileSystem.cpp b/kernel/kernel/FS/VirtualFileSystem.cpp index 7549d175..72f5fc68 100644 --- a/kernel/kernel/FS/VirtualFileSystem.cpp +++ b/kernel/kernel/FS/VirtualFileSystem.cpp @@ -4,7 +4,6 @@ #include #include #include -#include namespace Kernel { diff --git a/kernel/kernel/Input/PS2Controller.cpp b/kernel/kernel/Input/PS2Controller.cpp index a0460865..d63ae643 100644 --- a/kernel/kernel/Input/PS2Controller.cpp +++ b/kernel/kernel/Input/PS2Controller.cpp @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -7,7 +6,6 @@ #include #include #include -#include namespace Kernel::Input { diff --git a/kernel/kernel/PIT.cpp b/kernel/kernel/PIT.cpp index fce8c2b3..2dcab13c 100644 --- a/kernel/kernel/PIT.cpp +++ b/kernel/kernel/PIT.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include #define TIMER0_CTL 0x40 diff --git a/kernel/kernel/Semaphore.cpp b/kernel/kernel/Semaphore.cpp index 30076a53..685436bb 100644 --- a/kernel/kernel/Semaphore.cpp +++ b/kernel/kernel/Semaphore.cpp @@ -1,4 +1,3 @@ -#include #include #include