aboutsummaryrefslogtreecommitdiff
path: root/internal/utils/utils.go
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-13 11:09:34 +0530
committerishaan <contact@ishaan.cc>2026-07-13 11:09:34 +0530
commitd433b1af731ff901b9c14a647678471b27fdfe8a (patch)
treeb101b59e89d826386de8bbada4c405a3cfbf6b3f /internal/utils/utils.go
parent388971e7a86be97f6a7412cd1d526016bc4e14ce (diff)
better
Diffstat (limited to 'internal/utils/utils.go')
-rw-r--r--internal/utils/utils.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/utils/utils.go b/internal/utils/utils.go
index 96ca0f0..a8437b9 100644
--- a/internal/utils/utils.go
+++ b/internal/utils/utils.go
@@ -10,15 +10,6 @@ import (
"github.com/charmbracelet/x/term"
)
-func TryMlock(b []byte) {
- if len(b) == 0 {
- return
- }
- if err := syscall.Mlock(b); err != nil {
- fmt.Fprintf(os.Stderr, "mlock warning: %v\n", err)
- }
-}
-
func TakeSecureUserInput() ([]byte, error) {
fd := os.Stdin.Fd()