From 9c884122cf06039dd5ad272f2894c70bc5eb238b Mon Sep 17 00:00:00 2001 From: liyiheng Date: Tue, 5 Jun 2018 13:45:40 +0800 Subject: [PATCH] Power mod: Remove commented-out code --- power/battery_linux.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/power/battery_linux.go b/power/battery_linux.go index ef538374..693d95b6 100644 --- a/power/battery_linux.go +++ b/power/battery_linux.go @@ -23,13 +23,7 @@ type Battery struct { } func NewBattery() *Battery { - var battery *Battery - //sh := `upower -i $(upower -e | grep '/battery') | grep --color=never -E "state|to\ full|to\ empty|percentage"` - battery = &Battery{ - //args: []string{"-c", sh}, - //cmd: "/bin/sh", - } - return battery + return &Battery{} } /* -------------------- Exported Functions -------------------- */