mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
SystemMonitor: Remove unused functions and enable warning globally
These two helpers were the only unused functions clang could detect in the entire codebase. Now that's commitment to no dead code :^)
This commit is contained in:
parent
f8ea9cd64e
commit
5cbc734081
Notes:
sideshowbarker
2024-07-17 21:43:01 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/5cbc734081d Pull-request: https://github.com/SerenityOS/serenity/pull/11587
2 changed files with 0 additions and 11 deletions
|
@ -201,7 +201,6 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
|||
add_compile_options(-Wno-null-pointer-subtraction)
|
||||
add_compile_options(-Wno-unneeded-internal-declaration)
|
||||
add_compile_options(-Wno-unused-const-variable)
|
||||
add_compile_options(-Wno-unused-function)
|
||||
add_compile_options(-Wno-unused-private-field)
|
||||
add_compile_options(-fno-aligned-allocation)
|
||||
add_compile_options(-fconstexpr-steps=16777216)
|
||||
|
|
|
@ -67,16 +67,6 @@ static inline u64 page_count_to_bytes(size_t count)
|
|||
return count * 4096;
|
||||
}
|
||||
|
||||
static inline u64 page_count_to_kb(u64 count)
|
||||
{
|
||||
return page_count_to_bytes(count) / 1024;
|
||||
}
|
||||
|
||||
static inline u64 bytes_to_kb(u64 bytes)
|
||||
{
|
||||
return bytes / 1024;
|
||||
}
|
||||
|
||||
void MemoryStatsWidget::refresh()
|
||||
{
|
||||
auto proc_memstat = Core::File::construct("/proc/memstat");
|
||||
|
|
Loading…
Reference in a new issue