From c61c09295cd5332ac3c20b58974ab3b74aacb5b4 Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Wed, 4 Mar 2015 00:04:29 +0900 Subject: [PATCH] process: delete CPUPercent on the every architecture dependent part. --- process/process_darwin.go | 3 --- process/process_freebsd.go | 3 --- process/process_windows.go | 3 --- 3 files changed, 9 deletions(-) diff --git a/process/process_darwin.go b/process/process_darwin.go index 67ad29b..837512c 100644 --- a/process/process_darwin.go +++ b/process/process_darwin.go @@ -159,9 +159,6 @@ func (p *Process) Threads() (map[string]string, error) { func (p *Process) CPUTimes() (*cpu.CPUTimesStat, error) { return nil, common.NotImplementedError } -func (p *Process) CPUPercent() (int32, error) { - return 0, common.NotImplementedError -} func (p *Process) CPUAffinity() ([]int32, error) { return nil, common.NotImplementedError } diff --git a/process/process_freebsd.go b/process/process_freebsd.go index 373aab5..5fce208 100644 --- a/process/process_freebsd.go +++ b/process/process_freebsd.go @@ -144,9 +144,6 @@ func (p *Process) Threads() (map[string]string, error) { func (p *Process) CPUTimes() (*cpu.CPUTimesStat, error) { return nil, common.NotImplementedError } -func (p *Process) CPUPercent() (int32, error) { - return 0, common.NotImplementedError -} func (p *Process) CPUAffinity() ([]int32, error) { return nil, common.NotImplementedError } diff --git a/process/process_windows.go b/process/process_windows.go index a6cbe79..436f16f 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -135,9 +135,6 @@ func (p *Process) Threads() (map[string]string, error) { func (p *Process) CPUTimes() (*cpu.CPUTimesStat, error) { return nil, common.NotImplementedError } -func (p *Process) CPUPercent() (int32, error) { - return 0, common.NotImplementedError -} func (p *Process) CPUAffinity() ([]int32, error) { return nil, common.NotImplementedError }