1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00
serenity/Userland/Applications
Ben Wiederhake 6b7ce19161 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.
2023-01-02 20:27:20 -05:00
..
3DFileViewer 3DFileViewer: Properly propagate errors from WavefrontOBJLoader 2022-12-06 17:24:45 +00:00
About Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
AnalogClock Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Assistant LibThreading+Everywhere: Support returning error from BackgroundAction 2022-12-15 17:36:57 +00:00
Browser Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
BrowserSettings Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
Calculator Calculator: Add adding/subtracting/multiplying/dividing by a percentage 2022-12-31 00:07:13 +01:00
Calendar AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CalendarSettings Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
CharacterMap Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ClockSettings ClockSettings: Add a factory function for TimeZoneSettingsWidget 2022-12-15 21:00:24 +00:00
CrashReporter Applications: Remove i686 support 2022-12-28 11:53:41 +01:00
Debugger Applications: Remove i686 support 2022-12-28 11:53:41 +01:00
DisplaySettings LibThreading+Everywhere: Support returning error from BackgroundAction 2022-12-15 17:36:57 +00:00
Escalator AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FileManager FileManager: Propagate errors while loading bmp 2022-12-23 12:23:05 +00:00
FontEditor Base+Userland: Add menu item icons 2023-01-02 09:56:05 -05:00
GamesSettings AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Help Help: Detect clicked page correctly 2023-01-02 06:15:13 -07:00
HexEditor HexEditor: Handle some errors inside the editor 2022-12-14 23:43:20 -07:00
ImageViewer Base+Userland: Add menu item icons 2023-01-02 09:56:05 -05:00
KeyboardMapper Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
KeyboardSettings KeyboardSettings: Disable "activate keymap" button if keymap is active 2022-12-10 12:00:30 +00:00
Magnifier Magnifier: Add ability to drag the location when it is locked 2022-12-23 12:16:46 +00:00
Mail Meta+Userland: Pass Gfx::IntPoint by value 2022-12-07 11:48:27 +01:00
MailSettings AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
MouseSettings MouseSettings: Tweak "Natural scrolling" checkbox size 2023-01-01 13:48:29 +01:00
NetworkSettings LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
PartitionEditor AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PDFViewer Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
Piano Piano: Remove unused include of AK/StdLibExtraDetails.h 2023-01-02 20:27:20 -05:00
PixelPaint Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
Presenter Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
Run AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Settings AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SoundPlayer Userland: Remove unused includes of AK/Math.h 2023-01-02 20:27:20 -05:00
SpaceAnalyzer LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
Spreadsheet Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
SystemMonitor Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
Terminal Terminal+LibVT: Get the color scheme from the system theme 2022-12-31 04:20:59 -07:00
TerminalSettings Terminal+LibVT: Get the color scheme from the system theme 2022-12-31 04:20:59 -07:00
TextEditor TextEditor: Add option to open the current file in File Manager 2022-12-23 19:20:53 -05:00
ThemeEditor ThemeEditor: Make GUI initialization fallible 2023-01-01 09:55:05 -05:00
VideoPlayer Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Welcome AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CMakeLists.txt Applications: Add Presenter 2022-11-25 14:28:33 -07:00