remove dead code

This commit is contained in:
Ryan Cavicchioni 2020-03-28 18:13:15 -05:00
parent 1b054466cf
commit 8b2a67b73b
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 3 additions and 9 deletions

View File

@ -9,9 +9,8 @@ import (
) )
type CmdArgs struct { type CmdArgs struct {
Flags Flags Flags Flags
Client *lifx.Client Client *lifx.Client
Selector string
} }
type Flags struct { type Flags struct {

View File

@ -18,10 +18,6 @@ type Config struct {
} }
func main() { func main() {
var (
selector string
)
var config Config var config Config
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()
_, err = toml.DecodeFile(path.Join(homeDir, lumercFile), &config) _, err = toml.DecodeFile(path.Join(homeDir, lumercFile), &config)
@ -41,8 +37,7 @@ func main() {
c := lifx.NewClient(config.AccessToken) c := lifx.NewClient(config.AccessToken)
cmdArgs := lumecmd.CmdArgs{ cmdArgs := lumecmd.CmdArgs{
Client: c, Client: c,
Selector: selector,
} }
cmd, ok := lumecmd.GetCommand(command) cmd, ok := lumecmd.GetCommand(command)