Просмотр исходного кода

tech(server): remove unused code

bergquist 9 лет назад
Родитель
Сommit
52566376b2
2 измененных файлов с 0 добавлено и 18 удалено
  1. 0 14
      pkg/cmd/grafana-server/server.go
  2. 0 4
      pkg/models/server.go

+ 0 - 14
pkg/cmd/grafana-server/server.go

@@ -95,17 +95,3 @@ func (g *GrafanaServerImpl) Shutdown(code int, reason string) {
 	log.Close()
 	os.Exit(code)
 }
-
-// implement context.Context
-func (g *GrafanaServerImpl) Deadline() (deadline time.Time, ok bool) {
-	return g.context.Deadline()
-}
-func (g *GrafanaServerImpl) Done() <-chan struct{} {
-	return g.context.Done()
-}
-func (g *GrafanaServerImpl) Err() error {
-	return g.context.Err()
-}
-func (g *GrafanaServerImpl) Value(key interface{}) interface{} {
-	return g.context.Value(key)
-}

+ 0 - 4
pkg/models/server.go

@@ -1,10 +1,6 @@
 package models
 
-import "context"
-
 type GrafanaServer interface {
-	context.Context
-
 	Start()
 	Shutdown(code int, reason string)
 }