Browse Source

LibCore: Remove unused header includes

Brian Gianforcaro 4 years ago
parent
commit
176e1cbca7

+ 0 - 1
Userland/Libraries/LibCore/Account.cpp

@@ -8,7 +8,6 @@
 #include <AK/Random.h>
 #include <AK/ScopeGuard.h>
 #include <LibCore/Account.h>
-#include <LibCore/File.h>
 #ifndef AK_OS_MACOS
 #    include <crypt.h>
 #endif

+ 0 - 2
Userland/Libraries/LibCore/AnonymousBuffer.cpp

@@ -5,8 +5,6 @@
  */
 
 #include <LibCore/AnonymousBuffer.h>
-#include <LibIPC/Decoder.h>
-#include <LibIPC/Encoder.h>
 #include <LibIPC/File.h>
 #include <fcntl.h>
 #include <stdio.h>

+ 0 - 2
Userland/Libraries/LibCore/Command.cpp

@@ -5,13 +5,11 @@
  */
 
 #include "Command.h"
-#include <AK/ByteBuffer.h>
 #include <AK/Format.h>
 #include <AK/ScopeGuard.h>
 #include <LibCore/File.h>
 #include <fcntl.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <sys/wait.h>
 #include <unistd.h>
 

+ 0 - 2
Userland/Libraries/LibCore/ConfigFile.cpp

@@ -4,14 +4,12 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/ByteBuffer.h>
 #include <AK/StringBuilder.h>
 #include <LibCore/ConfigFile.h>
 #include <LibCore/File.h>
 #include <LibCore/StandardPaths.h>
 #include <pwd.h>
 #include <stdio.h>
-#include <unistd.h>
 
 namespace Core {
 

+ 0 - 1
Userland/Libraries/LibCore/DateTime.cpp

@@ -9,7 +9,6 @@
 #include <AK/Time.h>
 #include <LibCore/DateTime.h>
 #include <errno.h>
-#include <sys/time.h>
 #include <time.h>
 
 namespace Core {

+ 0 - 3
Userland/Libraries/LibCore/EventLoop.cpp

@@ -5,7 +5,6 @@
  */
 
 #include <AK/Badge.h>
-#include <AK/ByteBuffer.h>
 #include <AK/Debug.h>
 #include <AK/Format.h>
 #include <AK/IDAllocator.h>
@@ -26,11 +25,9 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <sys/select.h>
 #include <sys/socket.h>
-#include <sys/stat.h>
 #include <sys/time.h>
 #include <time.h>
 #include <unistd.h>

+ 0 - 5
Userland/Libraries/LibCore/FileWatcher.cpp

@@ -7,21 +7,16 @@
 
 #include "FileWatcher.h"
 #include <AK/Debug.h>
-#include <AK/Function.h>
 #include <AK/LexicalPath.h>
-#include <AK/Noncopyable.h>
 #include <AK/NonnullRefPtr.h>
-#include <AK/RefCounted.h>
 #include <AK/Result.h>
 #include <AK/String.h>
 #include <Kernel/API/InodeWatcherEvent.h>
 #include <Kernel/API/InodeWatcherFlags.h>
-#include <LibCore/DirIterator.h>
 #include <LibCore/Notifier.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>
-#include <sys/stat.h>
 #include <unistd.h>
 
 namespace Core {

+ 0 - 1
Userland/Libraries/LibCore/Notifier.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include <AK/Badge.h>
 #include <LibCore/Event.h>
 #include <LibCore/EventLoop.h>
 #include <LibCore/Notifier.h>

+ 0 - 3
Userland/Libraries/LibCore/Socket.cpp

@@ -14,10 +14,7 @@
 #include <fcntl.h>
 #include <netdb.h>
 #include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
 #include <sys/socket.h>
-#include <unistd.h>
 
 namespace Core {
 

+ 0 - 1
Userland/Libraries/LibCore/UDPServer.cpp

@@ -8,7 +8,6 @@
 #include <AK/Types.h>
 #include <LibCore/Notifier.h>
 #include <LibCore/UDPServer.h>
-#include <LibCore/UDPSocket.h>
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>