aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-09-14 21:56:54 +0100
committerGravatar GitHub <noreply@github.com> 2017-09-14 21:56:54 +0100
commit74f9dc6c0046cf847e202f171663960f0f8a5d5a (patch)
treef7f9da0000fbb45639add269203066fa462d0353
parentd8714e64e400ef873c2adc4d929a07d7890727b9 (diff)
downloadcoredns-74f9dc6c0046cf847e202f171663960f0f8a5d5a.tar.gz
coredns-74f9dc6c0046cf847e202f171663960f0f8a5d5a.tar.zst
coredns-74f9dc6c0046cf847e202f171663960f0f8a5d5a.zip
core: Remove AddMiddleware (#1076)
This does not help to make it backwards compatible. The middleware -> plugin rename invalidates all this. External middleware won't compile either way.
-rw-r--r--core/dnsserver/register.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/dnsserver/register.go b/core/dnsserver/register.go
index 8e19ba46e..d10227a65 100644
--- a/core/dnsserver/register.go
+++ b/core/dnsserver/register.go
@@ -124,12 +124,6 @@ func (c *Config) AddPlugin(m plugin.Plugin) {
c.Plugin = append(c.Plugin, m)
}
-// AddMiddleware adds a plugin to a site's plugin stack. This method is deprecated, use AddPlugin.
-func (c *Config) AddMiddleware(m plugin.Plugin) {
- println("deprecated: use AddPlugin")
- c.AddPlugin(m)
-}
-
// registerHandler adds a handler to a site's handler registration. Handlers
// use this to announce that they exist to other plugin.
func (c *Config) registerHandler(h plugin.Handler) {