diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-07-31 01:30:36 -0700 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-01 08:10:16 +0200 |
commit | 219d4ba3762940a1e3e47718bf09c793f3de9e9b (patch) | |
tree | 7e8b8b2be44618cf88275880e39a9bfe54f9ae26 /Userland | |
parent | 8623cec0d7c1b1747353b2c54ccf0ffe26c58574 (diff) | |
download | serenity-219d4ba3762940a1e3e47718bf09c793f3de9e9b.zip |
Utilities: Remove unused header includes
Diffstat (limited to 'Userland')
30 files changed, 0 insertions, 44 deletions
diff --git a/Userland/Utilities/arp.cpp b/Userland/Utilities/arp.cpp index 208b2c6f92..98c7962831 100644 --- a/Userland/Utilities/arp.cpp +++ b/Userland/Utilities/arp.cpp @@ -5,7 +5,6 @@ */ #include <AK/Assertions.h> -#include <AK/ByteBuffer.h> #include <AK/IPv4Address.h> #include <AK/JsonObject.h> #include <AK/MACAddress.h> @@ -13,7 +12,6 @@ #include <AK/Types.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> -#include <net/if.h> #include <net/route.h> #include <netinet/in.h> #include <sys/ioctl.h> diff --git a/Userland/Utilities/chgrp.cpp b/Userland/Utilities/chgrp.cpp index 67354ebfe8..69aba6b9fb 100644 --- a/Userland/Utilities/chgrp.cpp +++ b/Userland/Utilities/chgrp.cpp @@ -4,14 +4,11 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Optional.h> #include <AK/String.h> #include <LibCore/ArgsParser.h> #include <grp.h> -#include <pwd.h> #include <stdio.h> #include <string.h> -#include <sys/stat.h> #include <unistd.h> int main(int argc, char** argv) diff --git a/Userland/Utilities/cpp-parser.cpp b/Userland/Utilities/cpp-parser.cpp index 4286ea93b2..76bf57bdfa 100644 --- a/Userland/Utilities/cpp-parser.cpp +++ b/Userland/Utilities/cpp-parser.cpp @@ -4,8 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include "AK/Forward.h" -#include "LibCpp/AST.h" #include <LibCore/ArgsParser.h> #include <LibCore/File.h> #include <LibCpp/Parser.h> diff --git a/Userland/Utilities/dmesg.cpp b/Userland/Utilities/dmesg.cpp index 0703b080e6..2e890004fc 100644 --- a/Userland/Utilities/dmesg.cpp +++ b/Userland/Utilities/dmesg.cpp @@ -4,10 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/ByteBuffer.h> #include <LibCore/File.h> -#include <assert.h> -#include <fcntl.h> #include <stdio.h> #include <unistd.h> diff --git a/Userland/Utilities/du.cpp b/Userland/Utilities/du.cpp index 1782e56355..2840b326b4 100644 --- a/Userland/Utilities/du.cpp +++ b/Userland/Utilities/du.cpp @@ -14,13 +14,10 @@ #include <LibCore/DateTime.h> #include <LibCore/DirIterator.h> #include <LibCore/File.h> -#include <LibCore/Object.h> -#include <inttypes.h> #include <limits.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> -#include <unistd.h> struct DuOption { enum class TimeType { diff --git a/Userland/Utilities/errno.cpp b/Userland/Utilities/errno.cpp index 16ca956031..a95885914a 100644 --- a/Userland/Utilities/errno.cpp +++ b/Userland/Utilities/errno.cpp @@ -6,7 +6,6 @@ #include <LibCore/ArgsParser.h> #include <LibCore/File.h> -#include <stdlib.h> int main(int argc, char** argv) { diff --git a/Userland/Utilities/find.cpp b/Userland/Utilities/find.cpp index 2e1639badc..84c4f8803c 100644 --- a/Userland/Utilities/find.cpp +++ b/Userland/Utilities/find.cpp @@ -12,7 +12,6 @@ #include <AK/Vector.h> #include <LibCore/DirIterator.h> #include <errno.h> -#include <getopt.h> #include <grp.h> #include <pwd.h> #include <stdio.h> diff --git a/Userland/Utilities/fortune.cpp b/Userland/Utilities/fortune.cpp index 9353595b2b..84efc4eede 100644 --- a/Userland/Utilities/fortune.cpp +++ b/Userland/Utilities/fortune.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> diff --git a/Userland/Utilities/functrace.cpp b/Userland/Utilities/functrace.cpp index ac26f7ba36..2ce14f0682 100644 --- a/Userland/Utilities/functrace.cpp +++ b/Userland/Utilities/functrace.cpp @@ -5,8 +5,6 @@ */ #include <AK/Assertions.h> -#include <AK/ByteBuffer.h> -#include <AK/Demangle.h> #include <AK/HashMap.h> #include <AK/NonnullOwnPtr.h> #include <AK/StringBuilder.h> diff --git a/Userland/Utilities/gron.cpp b/Userland/Utilities/gron.cpp index c0ca58f2d0..95a6ac7887 100644 --- a/Userland/Utilities/gron.cpp +++ b/Userland/Utilities/gron.cpp @@ -4,8 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Assertions.h> -#include <AK/ByteBuffer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> diff --git a/Userland/Utilities/groupadd.cpp b/Userland/Utilities/groupadd.cpp index 3c8eab8047..0bb4f206be 100644 --- a/Userland/Utilities/groupadd.cpp +++ b/Userland/Utilities/groupadd.cpp @@ -8,7 +8,6 @@ #include <LibCore/ArgsParser.h> #include <ctype.h> -#include <errno.h> #include <grp.h> #include <string.h> #include <unistd.h> diff --git a/Userland/Utilities/groupdel.cpp b/Userland/Utilities/groupdel.cpp index a22dee2e52..f4fff5d27d 100644 --- a/Userland/Utilities/groupdel.cpp +++ b/Userland/Utilities/groupdel.cpp @@ -8,7 +8,6 @@ #include <LibCore/ArgsParser.h> #include <LibCore/File.h> -#include <ctype.h> #include <grp.h> #include <pwd.h> #include <unistd.h> diff --git a/Userland/Utilities/head.cpp b/Userland/Utilities/head.cpp index e380c876a9..d9dc256534 100644 --- a/Userland/Utilities/head.cpp +++ b/Userland/Utilities/head.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/ScopeGuard.h> #include <AK/StdLibExtras.h> #include <LibCore/ArgsParser.h> #include <errno.h> diff --git a/Userland/Utilities/keymap.cpp b/Userland/Utilities/keymap.cpp index 2239603c63..5fb65d2bae 100644 --- a/Userland/Utilities/keymap.cpp +++ b/Userland/Utilities/keymap.cpp @@ -8,7 +8,6 @@ #include <LibCore/ConfigFile.h> #include <LibKeyboard/CharacterMap.h> #include <stdio.h> -#include <string.h> #include <unistd.h> int main(int argc, char** argv) diff --git a/Userland/Utilities/ln.cpp b/Userland/Utilities/ln.cpp index ece88fb947..2b44b6dc9e 100644 --- a/Userland/Utilities/ln.cpp +++ b/Userland/Utilities/ln.cpp @@ -6,9 +6,7 @@ #include <AK/LexicalPath.h> #include <LibCore/ArgsParser.h> -#include <errno.h> #include <stdio.h> -#include <stdlib.h> #include <unistd.h> int main(int argc, char** argv) diff --git a/Userland/Utilities/lsof.cpp b/Userland/Utilities/lsof.cpp index 251909933b..7daaa89b42 100644 --- a/Userland/Utilities/lsof.cpp +++ b/Userland/Utilities/lsof.cpp @@ -6,7 +6,6 @@ #include <AK/ByteBuffer.h> #include <AK/GenericLexer.h> -#include <AK/HashMap.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> #include <AK/JsonParser.h> diff --git a/Userland/Utilities/notify.cpp b/Userland/Utilities/notify.cpp index affa66c389..3397b61fef 100644 --- a/Userland/Utilities/notify.cpp +++ b/Userland/Utilities/notify.cpp @@ -8,7 +8,6 @@ #include <LibGUI/Application.h> #include <LibGUI/Notification.h> #include <LibGfx/Bitmap.h> -#include <stdio.h> int main(int argc, char** argv) { diff --git a/Userland/Utilities/nproc.cpp b/Userland/Utilities/nproc.cpp index 5d9cd03290..f857a9a669 100644 --- a/Userland/Utilities/nproc.cpp +++ b/Userland/Utilities/nproc.cpp @@ -7,7 +7,6 @@ #include <AK/JsonObject.h> #include <LibCore/File.h> #include <stdio.h> -#include <stdlib.h> #include <unistd.h> int main() diff --git a/Userland/Utilities/passwd.cpp b/Userland/Utilities/passwd.cpp index 047d009021..5802a8d5f3 100644 --- a/Userland/Utilities/passwd.cpp +++ b/Userland/Utilities/passwd.cpp @@ -5,10 +5,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Types.h> #include <LibCore/Account.h> #include <LibCore/ArgsParser.h> -#include <LibCore/File.h> #include <LibCore/GetPassword.h> #include <string.h> #include <unistd.h> diff --git a/Userland/Utilities/profile.cpp b/Userland/Utilities/profile.cpp index 69b6d03e1f..d1362ef8da 100644 --- a/Userland/Utilities/profile.cpp +++ b/Userland/Utilities/profile.cpp @@ -8,7 +8,6 @@ #include <serenity.h> #include <stdio.h> #include <stdlib.h> -#include <string.h> int main(int argc, char** argv) { diff --git a/Userland/Utilities/rmdir.cpp b/Userland/Utilities/rmdir.cpp index 7aa55f3bad..f278c23e1e 100644 --- a/Userland/Utilities/rmdir.cpp +++ b/Userland/Utilities/rmdir.cpp @@ -6,7 +6,6 @@ #include <AK/Vector.h> #include <LibCore/ArgsParser.h> -#include <errno.h> #include <stdio.h> #include <unistd.h> diff --git a/Userland/Utilities/sql.cpp b/Userland/Utilities/sql.cpp index f42fe13851..e75f53e89d 100644 --- a/Userland/Utilities/sql.cpp +++ b/Userland/Utilities/sql.cpp @@ -10,7 +10,6 @@ #include <LibCore/StandardPaths.h> #include <LibLine/Editor.h> #include <LibSQL/AST/Lexer.h> -#include <LibSQL/AST/Parser.h> #include <LibSQL/AST/Token.h> #include <LibSQL/SQLClient.h> #include <unistd.h> diff --git a/Userland/Utilities/stty.cpp b/Userland/Utilities/stty.cpp index 5f08b28fb7..3ace5088aa 100644 --- a/Userland/Utilities/stty.cpp +++ b/Userland/Utilities/stty.cpp @@ -13,7 +13,6 @@ #include <AK/String.h> #include <AK/StringView.h> #include <AK/Vector.h> -#include <LibCore/ArgsParser.h> #include <ctype.h> #include <fcntl.h> #include <getopt.h> diff --git a/Userland/Utilities/su.cpp b/Userland/Utilities/su.cpp index 72348b51f0..9e4827dad6 100644 --- a/Userland/Utilities/su.cpp +++ b/Userland/Utilities/su.cpp @@ -4,12 +4,10 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Vector.h> #include <LibCore/Account.h> #include <LibCore/ArgsParser.h> #include <LibCore/GetPassword.h> #include <stdio.h> -#include <string.h> #include <unistd.h> extern "C" int main(int, char**); diff --git a/Userland/Utilities/sync.cpp b/Userland/Utilities/sync.cpp index af3f6f0c20..1323453089 100644 --- a/Userland/Utilities/sync.cpp +++ b/Userland/Utilities/sync.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <stdio.h> #include <unistd.h> int main(int, char**) diff --git a/Userland/Utilities/test.cpp b/Userland/Utilities/test.cpp index f662c8d259..fc8308f050 100644 --- a/Userland/Utilities/test.cpp +++ b/Userland/Utilities/test.cpp @@ -9,7 +9,6 @@ #include <AK/NonnullOwnPtr.h> #include <AK/OwnPtr.h> #include <LibCore/File.h> -#include <getopt.h> #include <stdio.h> #include <sys/stat.h> #include <unistd.h> diff --git a/Userland/Utilities/touch.cpp b/Userland/Utilities/touch.cpp index 089eec5493..f8aa7ca1b7 100644 --- a/Userland/Utilities/touch.cpp +++ b/Userland/Utilities/touch.cpp @@ -10,7 +10,6 @@ #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include <utime.h> diff --git a/Userland/Utilities/tr.cpp b/Userland/Utilities/tr.cpp index f228fa6d11..4d82a26885 100644 --- a/Userland/Utilities/tr.cpp +++ b/Userland/Utilities/tr.cpp @@ -5,10 +5,8 @@ */ #include <AK/String.h> -#include <AK/Vector.h> #include <LibCore/ArgsParser.h> #include <stdio.h> -#include <stdlib.h> int main(int argc, char** argv) { diff --git a/Userland/Utilities/usermod.cpp b/Userland/Utilities/usermod.cpp index 20b7ca2f08..7b70659517 100644 --- a/Userland/Utilities/usermod.cpp +++ b/Userland/Utilities/usermod.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/Types.h> #include <LibCore/Account.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> diff --git a/Userland/Utilities/w.cpp b/Userland/Utilities/w.cpp index d09354594d..3265eca222 100644 --- a/Userland/Utilities/w.cpp +++ b/Userland/Utilities/w.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/ByteBuffer.h> #include <AK/JsonObject.h> #include <AK/JsonValue.h> #include <LibCore/DateTime.h> |