From 6174045fe051583c54084da6cbee56265744c7c8 Mon Sep 17 00:00:00 2001 From: pleimer Date: Tue, 16 Mar 2021 13:43:58 -0400 Subject: [PATCH] remove unused --- pkg/host/host.go | 14 -------------- plugin/libpodstats.go | 2 -- 2 files changed, 16 deletions(-) delete mode 100644 pkg/host/host.go diff --git a/pkg/host/host.go b/pkg/host/host.go deleted file mode 100644 index dd6a248..0000000 --- a/pkg/host/host.go +++ /dev/null @@ -1,14 +0,0 @@ -package host - -/* -#include "globals.h" -*/ -//import "C" -import "fmt" - -//GlobalHostname retrieve collectd global hostname setting (hostname_g) -func GlobalHostname() { - //hostname := C.GoString(C.hostname_g) - hostname := "hellp" - fmt.Printf("This is ma global host name!!! %s\n", hostname) -} diff --git a/plugin/libpodstats.go b/plugin/libpodstats.go index a66f083..456de27 100644 --- a/plugin/libpodstats.go +++ b/plugin/libpodstats.go @@ -8,7 +8,6 @@ import ( "collectd.org/api" "collectd.org/plugin" "github.com/pleimer/collectd-libpod-stats/pkg/cgroups" - "github.com/pleimer/collectd-libpod-stats/pkg/host" "github.com/pleimer/collectd-libpod-stats/pkg/virt" ) @@ -61,7 +60,6 @@ func (ls *LibpodStats) Read(ctx context.Context) error { func init() { plugin.RegisterRead("libpodstats", NewLibpodStats()) - host.GlobalHostname() } func main() {}