summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/syscalls.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-09 22:41:07 +0200
committerPaul Buetow <paul@buetow.org>2026-03-09 22:41:07 +0200
commit1af7cf5fe51fa13e828cdef6268348ec9cd7bd7c (patch)
treef8d28d4faa627b31175c0c39164c2ea84e022e90 /internal/tui/dashboard/syscalls.go
parenta4c72ad2cbe4ca857a5880675563b2ab4d24e1b5 (diff)
tui: add sortable files dashboard table modes (task 364)
Diffstat (limited to 'internal/tui/dashboard/syscalls.go')
-rw-r--r--internal/tui/dashboard/syscalls.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/internal/tui/dashboard/syscalls.go b/internal/tui/dashboard/syscalls.go
index 78eed0c..8f2530a 100644
--- a/internal/tui/dashboard/syscalls.go
+++ b/internal/tui/dashboard/syscalls.go
@@ -149,39 +149,6 @@ func compareSyscallDefault(left, right statsengine.SyscallSnapshot) int {
return compareStringAsc(left.Name, right.Name)
}
-func compareUint64Desc(left, right uint64) int {
- switch {
- case left > right:
- return -1
- case left < right:
- return 1
- default:
- return 0
- }
-}
-
-func compareFloat64Desc(left, right float64) int {
- switch {
- case left > right:
- return -1
- case left < right:
- return 1
- default:
- return 0
- }
-}
-
-func compareStringAsc(left, right string) int {
- switch {
- case left < right:
- return -1
- case left > right:
- return 1
- default:
- return 0
- }
-}
-
func syscallSortKeyForColumn(width, column int) (syscallSortKey, bool) {
if width < 140 {
return compactSyscallSortKey(column)