From 8b2a67b73b0d0bdbcc13116420c7bb49b4649581 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 28 Mar 2020 18:13:15 -0500 Subject: [PATCH] remove dead code --- cmd/command.go | 5 ++--- cmd/lume/main.go | 7 +------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/cmd/command.go b/cmd/command.go index cacb8b7..21a1c71 100644 --- a/cmd/command.go +++ b/cmd/command.go @@ -9,9 +9,8 @@ import ( ) type CmdArgs struct { - Flags Flags - Client *lifx.Client - Selector string + Flags Flags + Client *lifx.Client } type Flags struct { diff --git a/cmd/lume/main.go b/cmd/lume/main.go index c271a92..bb94a4a 100644 --- a/cmd/lume/main.go +++ b/cmd/lume/main.go @@ -18,10 +18,6 @@ type Config struct { } func main() { - var ( - selector string - ) - var config Config homeDir, err := os.UserHomeDir() _, err = toml.DecodeFile(path.Join(homeDir, lumercFile), &config) @@ -41,8 +37,7 @@ func main() { c := lifx.NewClient(config.AccessToken) cmdArgs := lumecmd.CmdArgs{ - Client: c, - Selector: selector, + Client: c, } cmd, ok := lumecmd.GetCommand(command)