Browse Source

fix up imports

Anthony Woods 10 years ago
parent
commit
92a085550e
2 changed files with 0 additions and 26 deletions
  1. 0 1
      pkg/plugins/api_plugin.go
  2. 0 25
      pkg/plugins/models.go

+ 0 - 1
pkg/plugins/api_plugin.go

@@ -2,7 +2,6 @@ package plugins
 
 import (
 	"encoding/json"
-	"strings"
 
 	"github.com/grafana/grafana/pkg/models"
 )

+ 0 - 25
pkg/plugins/models.go

@@ -2,8 +2,6 @@ package plugins
 
 import (
 	"encoding/json"
-
-	"github.com/grafana/grafana/pkg/models"
 )
 
 type PluginLoader interface {
@@ -44,20 +42,6 @@ type PluginStaticRoute struct {
 	PluginId  string
 }
 
-type ApiPluginRoute struct {
-	Path            string          `json:"path"`
-	Method          string          `json:"method"`
-	ReqSignedIn     bool            `json:"reqSignedIn"`
-	ReqGrafanaAdmin bool            `json:"reqGrafanaAdmin"`
-	ReqRole         models.RoleType `json:"reqRole"`
-	Url             string          `json:"url"`
-}
-
-type ApiPlugin struct {
-	PluginBase
-	Routes []*ApiPluginRoute `json:"routes"`
-}
-
 type EnabledPlugins struct {
 	Panels      []*PanelPlugin
 	DataSources map[string]*DataSourcePlugin
@@ -73,12 +57,3 @@ func NewEnabledPlugins() EnabledPlugins {
 		Apps:        make([]*AppPlugin, 0),
 	}
 }
-
-func (app *ApiPlugin) Load(decoder *json.Decoder, pluginDir string) error {
-	if err := decoder.Decode(&app); err != nil {
-		return err
-	}
-
-	ApiPlugins[app.Id] = app
-	return nil
-}