Skip to content

Commit 1fcb640

Browse files
FAB-3187 remove dead code in core/admin.go
remove dead code caught by github.com/dominikh/go-tools/tree/master/cmd/unused Change-Id: Ia6831c0cbbd1c8f313277d098c2aac23d3561166 Signed-off-by: Christopher Ferris <[email protected]>
1 parent 56b6d12 commit 1fcb640

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

core/admin.go

-14
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package core
1818

1919
import (
2020
"os"
21-
"runtime"
2221

2322
"github.com/op/go-logging"
2423
"github.com/spf13/viper"
@@ -41,19 +40,6 @@ func NewAdminServer() *ServerAdmin {
4140
type ServerAdmin struct {
4241
}
4342

44-
func worker(id int, die chan struct{}) {
45-
for {
46-
select {
47-
case <-die:
48-
log.Debugf("worker %d terminating", id)
49-
return
50-
default:
51-
log.Debugf("%d is working...", id)
52-
runtime.Gosched()
53-
}
54-
}
55-
}
56-
5743
// GetStatus reports the status of the server
5844
func (*ServerAdmin) GetStatus(context.Context, *empty.Empty) (*pb.ServerStatus, error) {
5945
status := &pb.ServerStatus{Status: pb.ServerStatus_STARTED}

0 commit comments

Comments
 (0)