diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2023-01-02 16:57:12 +0100 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-02 20:27:20 -0500 |
commit | 6fd478b6ce6e717132a5e9a9a907d0e56916701f (patch) | |
tree | 79706d9b79756ee4e58ee807097520e877e23a35 /Userland/Libraries/LibTest | |
parent | 345662d617f54b432680698816ca914dd4b7efef (diff) | |
download | serenity-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 'Userland/Libraries/LibTest')
-rw-r--r-- | Userland/Libraries/LibTest/TestSuite.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTest/TestSuite.h b/Userland/Libraries/LibTest/TestSuite.h index 84e2ad5ebd..827e78d031 100644 --- a/Userland/Libraries/LibTest/TestSuite.h +++ b/Userland/Libraries/LibTest/TestSuite.h @@ -10,7 +10,6 @@ #include <LibTest/Macros.h> // intentionally first -- we redefine VERIFY and friends in here #include <AK/DeprecatedString.h> -#include <AK/Format.h> #include <AK/Function.h> #include <AK/NonnullRefPtrVector.h> #include <LibTest/TestCase.h> |