diff --git a/docker/docker_notlinux.go b/docker/docker_notlinux.go index f78fb33e..e403dbbb 100644 --- a/docker/docker_notlinux.go +++ b/docker/docker_notlinux.go @@ -3,8 +3,6 @@ package docker import ( - "encoding/json" - "github.com/shirou/gopsutil/cpu" "github.com/shirou/gopsutil/internal/common" ) @@ -40,8 +38,3 @@ func CgroupMem(containerid string, base string) (*CgroupMemStat, error) { func CgroupMemDocker(containerid string) (*CgroupMemStat, error) { return CgroupMem(containerid, common.HostSys("fs/cgroup/memory/docker")) } - -func (m CgroupMemStat) String() string { - s, _ := json.Marshal(m) - return string(s) -}