mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +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
2 changed files with 0 additions and 11 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue