mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(server): remove unused code
This commit is contained in:
parent
a32b7dfb9d
commit
52566376b2
@ -95,17 +95,3 @@ func (g *GrafanaServerImpl) Shutdown(code int, reason string) {
|
|||||||
log.Close()
|
log.Close()
|
||||||
os.Exit(code)
|
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)
|
|
||||||
}
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import "context"
|
|
||||||
|
|
||||||
type GrafanaServer interface {
|
type GrafanaServer interface {
|
||||||
context.Context
|
|
||||||
|
|
||||||
Start()
|
Start()
|
||||||
Shutdown(code int, reason string)
|
Shutdown(code int, reason string)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user