cpu,process: remove commented-out code

Found using https://go-critic.github.io/overview#commentedOutCode-ref
pull/584/head
Iskander Sharipov 7 years ago
parent eb1f1ab16f
commit f3d4342c30

@ -212,7 +212,6 @@ func parseStatLine(line string) (*TimesStat, error) {
}
if strings.HasPrefix(fields[0], "cpu") == false {
// return CPUTimesStat{}, e
return nil, errors.New("not contain cpu")
}

@ -168,12 +168,6 @@ func Test_Process_Terminal(t *testing.T) {
if err != nil {
t.Errorf("geting terminal error %v", err)
}
/*
if v == "" {
t.Errorf("could not get terminal %v", v)
}
*/
}
func Test_Process_IOCounters(t *testing.T) {

Loading…
Cancel
Save