1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:24:58 +00:00
serenity/Userland/Libraries/LibJS/Runtime/Temporal
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
..
AbstractOperations.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
AbstractOperations.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Calendar.cpp LibJS: Remove call to ToPositiveInteger after CalendarDaysInMonth 2022-12-31 00:05:20 +01:00
Calendar.h LibJS: Remove call to ToPositiveInteger after CalendarDaysInMonth 2022-12-31 00:05:20 +01:00
CalendarConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
CalendarConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
CalendarPrototype.cpp LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
CalendarPrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
Duration.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
Duration.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DurationConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
DurationConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
DurationPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
DurationPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Instant.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
Instant.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
InstantConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
InstantConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
InstantPrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
InstantPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ISO8601.cpp LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
ISO8601.h LibJS: Align ISO 8601 grammar with annotations from IXDTF 2022-11-03 19:15:50 +00:00
Now.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Now.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainDate.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDate.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDatePrototype.cpp LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainDatePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainDateTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainDateTimeConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainDateTimePrototype.cpp LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainDateTimePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
PlainMonthDay.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainMonthDay.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainMonthDayConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainMonthDayConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainMonthDayPrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainMonthDayPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainTimeConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainTimePrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainTimePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
PlainYearMonth.cpp LibJS: Fix spec link and spec comment in PlainYearMonth 2022-12-31 00:05:20 +01:00
PlainYearMonth.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
PlainYearMonthConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainYearMonthConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
PlainYearMonthPrototype.cpp LibJS: Convert Object::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
PlainYearMonthPrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
Temporal.cpp LibJS: Remove Object(Object& prototype) footgun 2022-12-14 15:11:57 +01:00
Temporal.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
TimeZone.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZone.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TimeZoneConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZoneConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
TimeZonePrototype.cpp LibJS: Replace standalone js_string() with PrimitiveString::create() 2022-12-07 16:43:06 +00:00
TimeZonePrototype.h LibJS: Hide all the constructors! 2022-08-29 03:24:54 +02:00
ZonedDateTime.cpp LibJS: Convert ordinary_create_from_constructor() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTime.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ZonedDateTimeConstructor.cpp LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTimeConstructor.h LibJS: Convert Object::construct() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
ZonedDateTimePrototype.cpp LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00
ZonedDateTimePrototype.h LibJS: Add yearOfWeek calendar methods and properties 2022-12-26 09:30:36 +01:00