From 56af4f147f5aeccb1aca83dece40753c93cc146e Mon Sep 17 00:00:00 2001 From: goeiecool9999 <> Date: Sat, 10 Sep 2022 04:03:01 +0200 Subject: [PATCH] Remove unnecessary function --- src/Cafe/HW/Latte/Core/LatteOverlay.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Cafe/HW/Latte/Core/LatteOverlay.cpp b/src/Cafe/HW/Latte/Core/LatteOverlay.cpp index 0bcf568a..845fb1cb 100644 --- a/src/Cafe/HW/Latte/Core/LatteOverlay.cpp +++ b/src/Cafe/HW/Latte/Core/LatteOverlay.cpp @@ -39,20 +39,14 @@ struct ProcessorTime { uint64 user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice; - // formulas borrowed and modified from htop source code uint64 idleSum() const { return idle + iowait; } - uint64 systemSum() const - { - return system + irq + softirq; - } - uint64 total() const { - return user + nice + systemSum() + idleSum() + steal; + return user + nice + system + idleSum() + irq + softirq + steal; } double percentageActive(const ProcessorTime& before) const {