Skip to content

Commit

Permalink
SystemMonitor: Remove unused functions and enable warning globally
Browse files Browse the repository at this point in the history
These two helpers were the only unused functions clang could detect in
the entire codebase. Now that's commitment to no dead code :^)
  • Loading branch information
ADKaster authored and bgianfo committed Jan 4, 2022
1 parent f8ea9cd commit 5cbc734
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 0 additions & 10 deletions Userland/Applications/SystemMonitor/MemoryStatsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5cbc734

Please sign in to comment.