diff --git a/internal/sysinfo/memtotal_js.go b/internal/sysinfo/memtotal_js.go deleted file mode 100644 index 45ff92792..000000000 --- a/internal/sysinfo/memtotal_js.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2020 New Relic Corporation. All rights reserved. -// SPDX-License-Identifier: Apache-2.0 - -//go:build js && wasm - -package sysinfo - -import "errors" - -// PhysicalMemoryBytes returns the total amount of host memory. -func PhysicalMemoryBytes() (uint64, error) { - return 0, errors.New("unsupported js/wasm arch") -} diff --git a/internal/sysinfo/usage_js.go b/internal/sysinfo/usage_js.go deleted file mode 100644 index 8b19bc296..000000000 --- a/internal/sysinfo/usage_js.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2020 New Relic Corporation. All rights reserved. -// SPDX-License-Identifier: Apache-2.0 - -//go:build js && wasm - -package sysinfo - -import "errors" - -// GetUsage gathers process times. -func GetUsage() (Usage, error) { - return Usage{}, errors.New("unsupported js/wasm arch") -} diff --git a/internal/sysinfo/usage_posix.go b/internal/sysinfo/usage_posix.go index 335261f3c..4d758dea1 100644 --- a/internal/sysinfo/usage_posix.go +++ b/internal/sysinfo/usage_posix.go @@ -1,7 +1,7 @@ // Copyright 2020 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -//go:build !windows && !(js && wasm) +// +build !windows package sysinfo