Skip to content

Commit

Permalink
FAB-3187 remove dead code in core/admin.go
Browse files Browse the repository at this point in the history
remove dead code caught by
github.com/dominikh/go-tools/tree/master/cmd/unused

Change-Id: Ia6831c0cbbd1c8f313277d098c2aac23d3561166
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
  • Loading branch information
christo4ferris committed Apr 17, 2017
1 parent 56b6d12 commit 1fcb640
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package core

import (
"os"
"runtime"

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

func worker(id int, die chan struct{}) {
for {
select {
case <-die:
log.Debugf("worker %d terminating", id)
return
default:
log.Debugf("%d is working...", id)
runtime.Gosched()
}
}
}

// GetStatus reports the status of the server
func (*ServerAdmin) GetStatus(context.Context, *empty.Empty) (*pb.ServerStatus, error) {
status := &pb.ServerStatus{Status: pb.ServerStatus_STARTED}
Expand Down

0 comments on commit 1fcb640

Please sign in to comment.