From f7bd28118c4ac34a9a444073b31ca8f2579188f3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 29 Jul 2025 03:06:49 +0900 Subject: hst: configurable wait delay This is useful for programs that take a long time to clean up. Signed-off-by: Ophestra --- internal/app/strings_linux.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 internal/app/strings_linux.go (limited to 'internal/app/strings_linux.go') diff --git a/internal/app/strings_linux.go b/internal/app/strings_linux.go deleted file mode 100644 index e4465cee..00000000 --- a/internal/app/strings_linux.go +++ /dev/null @@ -1,19 +0,0 @@ -package app - -import ( - "strconv" - - "hakurei.app/internal/app/state" -) - -func newInt(v int) *stringPair[int] { return &stringPair[int]{v, strconv.Itoa(v)} } -func newID(id *state.ID) *stringPair[state.ID] { return &stringPair[state.ID]{*id, id.String()} } - -// stringPair stores a value and its string representation. -type stringPair[T comparable] struct { - v T - s string -} - -func (s *stringPair[T]) unwrap() T { return s.v } -func (s *stringPair[T]) String() string { return s.s } -- cgit v1.3.1