Commit 74f9dc6c authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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.
parent d8714e64
...@@ -124,12 +124,6 @@ func (c *Config) AddPlugin(m plugin.Plugin) { ...@@ -124,12 +124,6 @@ func (c *Config) AddPlugin(m plugin.Plugin) {
c.Plugin = append(c.Plugin, m) 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 // registerHandler adds a handler to a site's handler registration. Handlers
// use this to announce that they exist to other plugin. // use this to announce that they exist to other plugin.
func (c *Config) registerHandler(h plugin.Handler) { func (c *Config) registerHandler(h plugin.Handler) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment