From 00839694f0d97bcb707460a4aab36949fb454158 Mon Sep 17 00:00:00 2001 From: Emilio Garcia Date: Wed, 29 Jun 2022 15:33:23 -0400 Subject: [PATCH] Revert "Added noop operations for js/wasm build target" --- internal/sysinfo/memtotal_js.go | 13 ------------- internal/sysinfo/usage_js.go | 13 ------------- internal/sysinfo/usage_posix.go | 2 +- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 internal/sysinfo/memtotal_js.go delete mode 100644 internal/sysinfo/usage_js.go 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