diff --git a/api/pkg/filtermanager/api_impl_129.go b/api/pkg/filtermanager/api_impl_129.go index 72aad216..dd34e56a 100644 --- a/api/pkg/filtermanager/api_impl_129.go +++ b/api/pkg/filtermanager/api_impl_129.go @@ -37,24 +37,16 @@ func (cb *filterManagerCallbackHandler) RefreshRouteCache() { api.LogErrorf("RefreshRouteCache is not implemented: %s", debug.Stack()) } -type filterCallbackHandlerWrapper struct { - capi.FilterCallbackHandler -} - -func NewFilterCallbackHandlerWrapper(h capi.FilterCallbackHandler) capi.FilterCallbackHandler { - return &filterCallbackHandlerWrapper{FilterCallbackHandler: h} -} - -func (w *filterCallbackHandlerWrapper) AddData([]byte, bool) { +func (cb *filterManagerCallbackHandler) AddData([]byte, bool) { api.LogErrorf("AddData is not implemented: %s", debug.Stack()) } func (cb *filterManagerCallbackHandler) DecoderFilterCallbacks() api.DecoderFilterCallbacks { - return NewFilterCallbackHandlerWrapper(cb.FilterCallbackHandler) + return cb } func (cb *filterManagerCallbackHandler) EncoderFilterCallbacks() api.EncoderFilterCallbacks { - return NewFilterCallbackHandlerWrapper(cb.FilterCallbackHandler) + return cb } func (cb *filterManagerCallbackHandler) Continue(st capi.StatusType, _ bool) {