summaryrefslogtreecommitdiff
path: root/Tests/LibC
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2023-01-02 16:57:12 +0100
committerTim Flynn <trflynn89@pm.me>2023-01-02 20:27:20 -0500
commit6fd478b6ce6e717132a5e9a9a907d0e56916701f (patch)
tree79706d9b79756ee4e58ee807097520e877e23a35 /Tests/LibC
parent345662d617f54b432680698816ca914dd4b7efef (diff)
downloadserenity-6fd478b6ce6e717132a5e9a9a907d0e56916701f.zip
Everywhere: Remove unused includes of AK/Format.h
These instances were detected by searching for files that include AK/Format.h, but don't match the regex: \\b(CheckedFormatString|critical_dmesgln|dbgln|dbgln_if|dmesgln|FormatBu ilder|__FormatIfSupported|FormatIfSupported|FormatParser|FormatString|Fo rmattable|Formatter|__format_value|HasFormatter|max_format_arguments|out |outln|set_debug_enabled|StandardFormatter|TypeErasedFormatParams|TypeEr asedParameter|VariadicFormatParams|v_critical_dmesgln|vdbgln|vdmesgln|vf ormat|vout|warn|warnln|warnln_if)\\b (Without the linebreaks.) This regex is pessimistic, so there might be more files that don't actually use any formatting functions. Observe that this revealed that Userland/Libraries/LibC/signal.cpp is missing an include. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another.
Diffstat (limited to 'Tests/LibC')
-rw-r--r--Tests/LibC/TestSearch.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Tests/LibC/TestSearch.cpp b/Tests/LibC/TestSearch.cpp
index dca74118d3..b1df6533c3 100644
--- a/Tests/LibC/TestSearch.cpp
+++ b/Tests/LibC/TestSearch.cpp
@@ -6,7 +6,6 @@
#include <LibTest/TestCase.h>
-#include <AK/Format.h>
#include <bits/search.h>
#include <search.h>
#include <string.h>