mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 14:12:52 +00:00
Everywhere: Remove unused includes of LibC/stdlib.h
These instances were detected by searching for files that include stdlib.h, but don't match the regex: \\b(_abort|abort|abs|aligned_alloc|arc4random|arc4random_buf|arc4random_ uniform|atexit|atof|atoi|atol|atoll|bsearch|calloc|clearenv|div|div_t|ex it|_Exit|EXIT_FAILURE|EXIT_SUCCESS|free|getenv|getprogname|grantpt|labs| ldiv|ldiv_t|llabs|lldiv|lldiv_t|malloc|malloc_good_size|malloc_size|mble n|mbstowcs|mbtowc|mkdtemp|mkstemp|mkstemps|mktemp|posix_memalign|posix_o penpt|ptsname|ptsname_r|putenv|qsort|qsort_r|rand|RAND_MAX|random|reallo c|realpath|secure_getenv|serenity_dump_malloc_stats|serenity_setenv|sete nv|setprogname|srand|srandom|strtod|strtof|strtol|strtold|strtoll|strtou l|strtoull|system|unlockpt|unsetenv|wcstombs|wctomb)\\b (Without the linebreaks.) This regex is pessimistic, so there might be more files that don't actually use anything from the stdlib. In theory, one might use LibCPP to detect things like this automatically, but let's do this one step after another.
This commit is contained in:
parent
f07847e099
commit
6b7ce19161
Notes:
sideshowbarker
2024-07-17 02:16:24 +09:00
Author: https://github.com/BenWiederhake
Commit: 6b7ce19161
Pull-request: https://github.com/SerenityOS/serenity/pull/16783
Reviewed-by: https://github.com/bgianfo ✅
39 changed files with 0 additions and 39 deletions
|
@ -16,7 +16,6 @@
|
|||
#include <LibGUI/Painter.h>
|
||||
#include <LibGfx/Font/FontDatabase.h>
|
||||
#include <LibGfx/StylePainter.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
REGISTER_WIDGET(SystemMonitor, MemoryStatsWidget)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue