mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:12:45 +00:00 
			
		
		
		
	Kernel: Remove unused includes of Kernel/Debug.h
These instances were detected by searching for files that include Kernel/Debug.h, but don't match the regex: \\bdbgln_if\(|_DEBUG\\b This regex is pessimistic, so there might be more files that don't check for any real *_DEBUG macro. There seem to be no corner cases anyway. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another.
This commit is contained in:
		
							parent
							
								
									a6a439243f
								
							
						
					
					
						commit
						143a64f9a2
					
				
					 14 changed files with 0 additions and 14 deletions
				
			
		|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Registry.h> | #include <Kernel/FileSystem/SysFS/Registry.h> | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/BusDirectory.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/BusDirectory.h> | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceDirectory.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceDirectory.h> | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceAttribute.h> | ||||||
| #include <Kernel/Sections.h> | #include <Kernel/Sections.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceAttribute.h> | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceDirectory.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Bus/PCI/DeviceDirectory.h> | ||||||
| #include <Kernel/Sections.h> | #include <Kernel/Sections.h> | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceAttribute.h> | ||||||
| #include <Kernel/Sections.h> | #include <Kernel/Sections.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceAttribute.h> | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceDirectory.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Graphics/DisplayConnector/DeviceDirectory.h> | ||||||
| #include <Kernel/Graphics/DisplayConnector.h> | #include <Kernel/Graphics/DisplayConnector.h> | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceAttribute.h> | ||||||
| #include <Kernel/Sections.h> | #include <Kernel/Sections.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/Access.h> | #include <Kernel/Bus/PCI/Access.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceAttribute.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceAttribute.h> | ||||||
| #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceDirectory.h> | #include <Kernel/FileSystem/SysFS/Subsystems/Devices/Storage/DeviceDirectory.h> | ||||||
| #include <Kernel/Sections.h> | #include <Kernel/Sections.h> | ||||||
|  |  | ||||||
|  | @ -12,7 +12,6 @@ | ||||||
| #endif | #endif | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/IDs.h> | #include <Kernel/Bus/PCI/IDs.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/Graphics/Bochs/Definitions.h> | #include <Kernel/Graphics/Bochs/Definitions.h> | ||||||
| #include <Kernel/Graphics/Bochs/GraphicsAdapter.h> | #include <Kernel/Graphics/Bochs/GraphicsAdapter.h> | ||||||
| #include <Kernel/Graphics/Bochs/QEMUDisplayConnector.h> | #include <Kernel/Graphics/Bochs/QEMUDisplayConnector.h> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
|  * SPDX-License-Identifier: BSD-2-Clause |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/Devices/DeviceManagement.h> | #include <Kernel/Devices/DeviceManagement.h> | ||||||
| #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h> | #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h> | ||||||
| #include <Kernel/Graphics/Generic/DisplayConnector.h> | #include <Kernel/Graphics/Generic/DisplayConnector.h> | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
|  * SPDX-License-Identifier: BSD-2-Clause |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/Devices/DeviceManagement.h> | #include <Kernel/Devices/DeviceManagement.h> | ||||||
| #include <Kernel/Graphics/GraphicsManagement.h> | #include <Kernel/Graphics/GraphicsManagement.h> | ||||||
| #include <Kernel/Graphics/VMWare/Console.h> | #include <Kernel/Graphics/VMWare/Console.h> | ||||||
|  |  | ||||||
|  | @ -9,7 +9,6 @@ | ||||||
| #include <AK/Try.h> | #include <AK/Try.h> | ||||||
| #include <Kernel/Bus/PCI/API.h> | #include <Kernel/Bus/PCI/API.h> | ||||||
| #include <Kernel/Bus/PCI/IDs.h> | #include <Kernel/Bus/PCI/IDs.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h> | #include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h> | ||||||
| #include <Kernel/Graphics/GraphicsManagement.h> | #include <Kernel/Graphics/GraphicsManagement.h> | ||||||
| #include <Kernel/Graphics/VMWare/Definitions.h> | #include <Kernel/Graphics/VMWare/Definitions.h> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,6 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <AK/Types.h> | #include <AK/Types.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <LibC/limits.h> | #include <LibC/limits.h> | ||||||
| 
 | 
 | ||||||
| #define KMALLOC_SCRUB_BYTE 0xbb | #define KMALLOC_SCRUB_BYTE 0xbb | ||||||
|  |  | ||||||
|  | @ -4,7 +4,6 @@ | ||||||
|  * SPDX-License-Identifier: BSD-2-Clause |  * SPDX-License-Identifier: BSD-2-Clause | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/FileSystem/ProcFS/DirectoryInode.h> | #include <Kernel/FileSystem/ProcFS/DirectoryInode.h> | ||||||
| #include <Kernel/FileSystem/ProcFS/LinkInode.h> | #include <Kernel/FileSystem/ProcFS/LinkInode.h> | ||||||
| #include <Kernel/KBufferBuilder.h> | #include <Kernel/KBufferBuilder.h> | ||||||
|  |  | ||||||
|  | @ -12,7 +12,6 @@ | ||||||
| #    include <Kernel/Arch/x86_64/PCSpeaker.h> | #    include <Kernel/Arch/x86_64/PCSpeaker.h> | ||||||
| #endif | #endif | ||||||
| #include <Kernel/CommandLine.h> | #include <Kernel/CommandLine.h> | ||||||
| #include <Kernel/Debug.h> |  | ||||||
| #include <Kernel/Devices/DeviceManagement.h> | #include <Kernel/Devices/DeviceManagement.h> | ||||||
| #include <Kernel/Devices/HID/HIDManagement.h> | #include <Kernel/Devices/HID/HIDManagement.h> | ||||||
| #include <Kernel/Graphics/GraphicsManagement.h> | #include <Kernel/Graphics/GraphicsManagement.h> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ben Wiederhake
						Ben Wiederhake