浏览代码

tools/benchmark: remove deadcode

The Execute() function is a deadcode. Let's remove it.
Hitoshi Mitake 10 年之前
父节点
当前提交
16b63310b2
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      tools/benchmark/cmd/root.go

+ 0 - 9
tools/benchmark/cmd/root.go

@@ -15,8 +15,6 @@
 package cmd
 
 import (
-	"fmt"
-	"os"
 	"sync"
 
 	"github.com/coreos/etcd/Godeps/_workspace/src/github.com/cheggaaa/pb"
@@ -48,10 +46,3 @@ func init() {
 	RootCmd.PersistentFlags().UintVar(&totalConns, "conns", 1, "Total number of gRPC connections")
 	RootCmd.PersistentFlags().UintVar(&totalClients, "clients", 1, "Total number of gRPC clients")
 }
-
-func Execute() {
-	if err := RootCmd.Execute(); err != nil {
-		fmt.Println(err)
-		os.Exit(-1)
-	}
-}