diff options
| author | Andrew Lytvynov <awly@tailscale.com> | 2026-04-24 15:56:00 -0700 |
|---|---|---|
| committer | Andrew Lytvynov <awly@tailscale.com> | 2026-04-24 15:57:18 -0700 |
| commit | 00132f2615c9d1f1dab615a85cfa3fe6598f6677 (patch) | |
| tree | b489b4592c775d798a0b4567a2c9a32649406376 /util/sysresources/memory_darwin.go | |
| parent | 1b40911611b37947bdc905dec30b2914af540920 (diff) | |
| download | tailscale-awly/deadcode-sysresources.tar.xz tailscale-awly/deadcode-sysresources.zip | |
util/sysresources: remove unused packageawly/deadcode-sysresources
Added a few years ago and appears to be unused.
Updates #cleanup
Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Diffstat (limited to 'util/sysresources/memory_darwin.go')
| -rw-r--r-- | util/sysresources/memory_darwin.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/util/sysresources/memory_darwin.go b/util/sysresources/memory_darwin.go deleted file mode 100644 index 165f12eb3..000000000 --- a/util/sysresources/memory_darwin.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Tailscale Inc & contributors -// SPDX-License-Identifier: BSD-3-Clause - -//go:build darwin - -package sysresources - -import "golang.org/x/sys/unix" - -func totalMemoryImpl() uint64 { - val, err := unix.SysctlUint64("hw.memsize") - if err != nil { - return 0 - } - return val -} |
