Ver código fonte

Services: Remove unused header includes

Brian Gianforcaro 4 anos atrás
pai
commit
808aa31353

+ 0 - 6
Userland/Services/AudioServer/ClientConnection.cpp

@@ -8,12 +8,6 @@
 #include "Mixer.h"
 #include <AudioServer/AudioClientEndpoint.h>
 #include <LibAudio/Buffer.h>
-#include <errno.h>
-#include <stdio.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <unistd.h>
 
 namespace AudioServer {
 

+ 0 - 1
Userland/Services/AudioServer/Mixer.cpp

@@ -10,7 +10,6 @@
 #include <AudioServer/ClientConnection.h>
 #include <AudioServer/Mixer.h>
 #include <pthread.h>
-#include <strings.h>
 
 namespace AudioServer {
 

+ 0 - 1
Userland/Services/AudioServer/main.cpp

@@ -5,7 +5,6 @@
  */
 
 #include "Mixer.h"
-#include <LibCore/File.h>
 #include <LibCore/LocalServer.h>
 
 int main(int, char**)

+ 0 - 1
Userland/Services/ChessEngine/ChessEngine.cpp

@@ -6,7 +6,6 @@
 
 #include "ChessEngine.h"
 #include "MCTSTree.h"
-#include <AK/Debug.h>
 #include <AK/Random.h>
 #include <LibCore/ElapsedTimer.h>
 

+ 0 - 1
Userland/Services/Clipboard/ClientConnection.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Badge.h>
 #include <Clipboard/ClientConnection.h>
 #include <Clipboard/ClipboardClientEndpoint.h>
 #include <Clipboard/Storage.h>

+ 0 - 1
Userland/Services/KeyboardPreferenceLoader/main.cpp

@@ -7,7 +7,6 @@
 #include <LibCore/ConfigFile.h>
 #include <LibCore/File.h>
 #include <errno.h>
-#include <serenity.h>
 #include <spawn.h>
 #include <stdio.h>
 #include <sys/ioctl.h>

+ 0 - 1
Userland/Services/LookupServer/DNSName.cpp

@@ -7,7 +7,6 @@
 
 #include "DNSName.h"
 #include <AK/Random.h>
-#include <AK/Vector.h>
 #include <ctype.h>
 
 namespace LookupServer {

+ 0 - 2
Userland/Services/LookupServer/DNSPacket.cpp

@@ -9,11 +9,9 @@
 #include "DNSName.h"
 #include "DNSPacketHeader.h"
 #include <AK/Debug.h>
-#include <AK/IPv4Address.h>
 #include <AK/MemoryStream.h>
 #include <AK/StringBuilder.h>
 #include <arpa/inet.h>
-#include <ctype.h>
 #include <stdlib.h>
 
 namespace LookupServer {

+ 0 - 2
Userland/Services/LookupServer/LookupServer.cpp

@@ -7,7 +7,6 @@
 #include "LookupServer.h"
 #include "ClientConnection.h"
 #include "DNSPacket.h"
-#include <AK/ByteBuffer.h>
 #include <AK/Debug.h>
 #include <AK/HashMap.h>
 #include <AK/Random.h>
@@ -16,7 +15,6 @@
 #include <LibCore/ConfigFile.h>
 #include <LibCore/File.h>
 #include <LibCore/LocalServer.h>
-#include <LibCore/LocalSocket.h>
 #include <LibCore/UDPSocket.h>
 #include <stdio.h>
 #include <time.h>

+ 0 - 1
Userland/Services/RequestServer/GeminiProtocol.cpp

@@ -8,7 +8,6 @@
 #include <LibGemini/GeminiRequest.h>
 #include <RequestServer/GeminiProtocol.h>
 #include <RequestServer/GeminiRequest.h>
-#include <fcntl.h>
 
 namespace RequestServer {
 

+ 0 - 2
Userland/Services/RequestServer/HttpProtocol.cpp

@@ -10,11 +10,9 @@
 #include <AK/OwnPtr.h>
 #include <AK/String.h>
 #include <AK/URL.h>
-#include <LibHTTP/HttpJob.h>
 #include <RequestServer/ClientConnection.h>
 #include <RequestServer/HttpCommon.h>
 #include <RequestServer/HttpProtocol.h>
-#include <RequestServer/HttpRequest.h>
 #include <RequestServer/Request.h>
 
 namespace RequestServer {

+ 0 - 2
Userland/Services/RequestServer/HttpsProtocol.cpp

@@ -10,11 +10,9 @@
 #include <AK/OwnPtr.h>
 #include <AK/String.h>
 #include <AK/URL.h>
-#include <LibHTTP/HttpsJob.h>
 #include <RequestServer/ClientConnection.h>
 #include <RequestServer/HttpCommon.h>
 #include <RequestServer/HttpsProtocol.h>
-#include <RequestServer/HttpsRequest.h>
 #include <RequestServer/Request.h>
 
 namespace RequestServer {

+ 0 - 1
Userland/Services/RequestServer/Request.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Badge.h>
 #include <RequestServer/ClientConnection.h>
 #include <RequestServer/Request.h>
 

+ 0 - 3
Userland/Services/SystemServer/Service.cpp

@@ -14,9 +14,6 @@
 #include <LibCore/File.h>
 #include <LibCore/Socket.h>
 #include <fcntl.h>
-#include <grp.h>
-#include <libgen.h>
-#include <pwd.h>
 #include <sched.h>
 #include <stdio.h>
 #include <sys/ioctl.h>

+ 0 - 1
Userland/Services/Taskbar/TaskbarButton.cpp

@@ -11,7 +11,6 @@
 #include <LibGUI/WindowManagerServerConnection.h>
 #include <LibGUI/WindowServerConnection.h>
 #include <LibGfx/Font.h>
-#include <LibGfx/FontDatabase.h>
 #include <LibGfx/Palette.h>
 #include <LibGfx/StylePainter.h>
 

+ 0 - 1
Userland/Services/TelnetServer/Parser.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Function.h>
 #include <AK/String.h>
 #include <AK/Types.h>
 

+ 0 - 2
Userland/Services/TelnetServer/main.cpp

@@ -5,14 +5,12 @@
  */
 
 #include "Client.h"
-#include <AK/ByteBuffer.h>
 #include <AK/HashMap.h>
 #include <AK/String.h>
 #include <AK/Types.h>
 #include <LibCore/ArgsParser.h>
 #include <LibCore/EventLoop.h>
 #include <LibCore/TCPServer.h>
-#include <LibCore/TCPSocket.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>

+ 0 - 1
Userland/Services/WebContent/ClientConnection.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Badge.h>
 #include <AK/Debug.h>
 #include <AK/JsonObject.h>
 #include <LibGfx/Bitmap.h>

+ 0 - 4
Userland/Services/WebContent/WebContentConsoleClient.cpp

@@ -6,14 +6,10 @@
  */
 
 #include "WebContentConsoleClient.h"
-#include <LibJS/Console.h>
 #include <LibJS/Interpreter.h>
 #include <LibJS/MarkupGenerator.h>
 #include <LibJS/Parser.h>
 #include <LibWeb/Bindings/DOMExceptionWrapper.h>
-#include <LibWeb/DOM/DocumentType.h>
-#include <LibWeb/DOM/Text.h>
-#include <LibWeb/DOMTreeModel.h>
 
 namespace WebContent {
 

+ 0 - 1
Userland/Services/WebSocket/ClientConnection.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Badge.h>
 #include <LibWebSocket/ConnectionInfo.h>
 #include <LibWebSocket/Message.h>
 #include <WebSocket/ClientConnection.h>

+ 0 - 8
Userland/Services/WindowServer/EventLoop.cpp

@@ -6,22 +6,14 @@
 
 #include <AK/Debug.h>
 #include <Kernel/API/MousePacket.h>
-#include <LibCore/LocalSocket.h>
-#include <LibCore/Object.h>
 #include <WindowServer/ClientConnection.h>
 #include <WindowServer/Cursor.h>
-#include <WindowServer/Event.h>
 #include <WindowServer/EventLoop.h>
 #include <WindowServer/Screen.h>
 #include <WindowServer/WMClientConnection.h>
 #include <WindowServer/WindowManager.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
-#include <sys/select.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <time.h>
 #include <unistd.h>
 
 namespace WindowServer {

+ 1 - 0
Userland/Services/WindowServer/ScreenLayout.ipp

@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
+#include <AK/ScopeGuard.h>
 #include <Kernel/API/FB.h>
 #include <Services/WindowServer/ScreenLayout.h>
 #include <errno.h>

+ 0 - 1
Userland/Services/WindowServer/Window.cpp

@@ -16,7 +16,6 @@
 #include <AK/Badge.h>
 #include <AK/CharacterTypes.h>
 #include <AK/Debug.h>
-#include <WindowServer/WindowClientEndpoint.h>
 
 namespace WindowServer {