From 57db408c41a5f5765d0681aff9dafcd4a60efdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel?= Date: Mon, 4 Feb 2019 10:39:58 +0100 Subject: [PATCH] Remove unused import --- public/app.js | 1 - public/utils/config-handler.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/app.js b/public/app.js index ddd401b41..68bd5a5b5 100644 --- a/public/app.js +++ b/public/app.js @@ -116,7 +116,6 @@ import './services'; import './controllers'; import './factories'; import './directives'; -import { runInContext } from 'vm'; // Added due to Kibana 6.3.0. Do not modify. uiModules.get('kibana').provider('dashboardConfig', () => { diff --git a/public/utils/config-handler.js b/public/utils/config-handler.js index 4b17cb932..c66ef831d 100644 --- a/public/utils/config-handler.js +++ b/public/utils/config-handler.js @@ -11,7 +11,6 @@ */ import js2xmlparser from 'js2xmlparser'; import XMLBeautifier from './xml-beautifier'; -import beautifier from './json-beautifier'; import { queryConfig } from '../services/query-config'; import { objectWithoutProperties } from './remove-hash-key.js'; @@ -218,13 +217,14 @@ export class ConfigurationHandler { if (!$scope.$$phase) $scope.$digest(); } - json2xml(data,$scope) { + json2xml(data) { if(data){ const result = XMLBeautifier( js2xmlparser.parse('configuration', data) ); return result; } + return false; } /**