1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Power mod: Remove commented-out code

This commit is contained in:
liyiheng 2018-06-05 13:45:40 +08:00
parent fc445cf2e7
commit 9c884122cf

View File

@ -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 -------------------- */