Remove legacy response handler (#28985)

This commit is contained in:
Tim Roes 2019-01-21 09:04:53 +01:00 committed by GitHub
parent ea6651a8f6
commit b2f1cc4d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,14 @@
* under the License.
*/
import { VisResponseHandlersRegistryProvider } from '../../registry/vis_response_handlers';
/**
* The LegacyResponseHandler is not registered as a response handler and can't be used
* as such anymore. Since the function itself is still used as a utility in the table
* function and the vislib response handler, we'll keep it for now.
* As soon as we have a new table implementation (https://github.com/elastic/kibana/issues/16639)
* we should move this over into or close to the vislib response handler as a pure utility
* function.
*/
const LegacyResponseHandlerProvider = function () {
@ -77,6 +84,4 @@ const LegacyResponseHandlerProvider = function () {
};
};
VisResponseHandlersRegistryProvider.register(LegacyResponseHandlerProvider);
export { LegacyResponseHandlerProvider };