Browse code

pkg: plugins: remove dead code

Signed-off-by: Antonio Murdaca <runcom@redhat.com>

Antonio Murdaca authored on 2015/12/17 19:05:50
Showing 1 changed files
... ...
@@ -18,23 +18,15 @@ var (
18 18
 	specsPaths  = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"}
19 19
 )
20 20
 
21
-// Registry defines behavior of a registry of plugins.
22
-type Registry interface {
23
-	// Plugins lists all plugins.
24
-	Plugins() ([]*Plugin, error)
25
-	// Plugin returns the plugin registered with the given name (or returns an error).
26
-	Plugin(name string) (*Plugin, error)
27
-}
28
-
29
-// LocalRegistry defines a registry that is local (using unix socket).
30
-type LocalRegistry struct{}
21
+// localRegistry defines a registry that is local (using unix socket).
22
+type localRegistry struct{}
31 23
 
32
-func newLocalRegistry() LocalRegistry {
33
-	return LocalRegistry{}
24
+func newLocalRegistry() localRegistry {
25
+	return localRegistry{}
34 26
 }
35 27
 
36 28
 // Plugin returns the plugin registered with the given name (or returns an error).
37
-func (l *LocalRegistry) Plugin(name string) (*Plugin, error) {
29
+func (l *localRegistry) Plugin(name string) (*Plugin, error) {
38 30
 	socketpaths := pluginPaths(socketsPath, name, ".sock")
39 31
 
40 32
 	for _, p := range socketpaths {