Skip to content

Commit

Permalink
fix issue reported from unused code checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo committed Aug 23, 2018
1 parent ca4a535 commit 909e551
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"github.com/hetznercloud/hcloud-go/hcloud"
)

var sshPassPhrases = make(map[string][]byte)

func waitAction(ctx context.Context, client *hcloud.Client, action *hcloud.Action) (<-chan error, <-chan int) {
errCh := make(chan error, 1)
progressCh := make(chan int)
Expand Down Expand Up @@ -89,17 +87,3 @@ func FatalOnError(err error) {
log.Fatal(err)
}
}

func waitOrError(tc chan bool, ec chan error, numProcPtr *int) error {
numProcs := *numProcPtr
for numProcs > 0 {
select {
case err := <-ec:
return err
case <-tc:
numProcs--
}
}

return nil
}
1 change: 0 additions & 1 deletion pkg/clustermanager/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type Manager struct {
eventService EventService
nodeCommunicator NodeCommunicator
clusterProvider ClusterProvider
wait bool
}

//NewClusterManager create a new manager for the cluster
Expand Down

0 comments on commit 909e551

Please sign in to comment.