Bug 1406061 - Remove the unused Jsbeautify.jsm module; r=jdescottes draft
authorPatrick Brosset <pbrosset@mozilla.com>
Thu, 19 Oct 2017 09:58:19 +0200
changeset 683179 29394e085bf80d394dd4e1c6013082c0ebe94069
parent 683143 be40354c5fb63d10fae1ad8f7f1047c041076c2b
child 736553 08c5c42fcae462a9bae108ee908def915a27c973
push id85277
push userbmo:pbrosset@mozilla.com
push dateThu, 19 Oct 2017 09:41:03 +0000
reviewersjdescottes
bugs1406061
milestone58.0a1
Bug 1406061 - Remove the unused Jsbeautify.jsm module; r=jdescottes MozReview-Commit-ID: KF39qXJ2s11
devtools/client/shared/Jsbeautify.jsm
devtools/client/shared/moz.build
tools/lint/eslint/modules.json
deleted file mode 100644
--- a/devtools/client/shared/Jsbeautify.jsm
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-/*
- * JS Beautifier. Please use require("devtools/shared/jsbeautify/beautify") instead of
- * this JSM.
- */
-
-this.EXPORTED_SYMBOLS = [ "jsBeautify" ];
-
-const { require } = Components.utils.import("resource://devtools/shared/Loader.jsm", {});
-const { beautify } = require("devtools/shared/jsbeautify/beautify");
-const jsBeautify = beautify.js;
--- a/devtools/client/shared/moz.build
+++ b/devtools/client/shared/moz.build
@@ -26,17 +26,16 @@ DevToolsModules(
     'developer-toolbar.js',
     'devices.js',
     'DOMHelpers.jsm',
     'doorhanger.js',
     'enum.js',
     'file-saver.js',
     'getjson.js',
     'inplace-editor.js',
-    'Jsbeautify.jsm',
     'key-shortcuts.js',
     'keycodes.js',
     'natural-sort.js',
     'network-throttling-profiles.js',
     'node-attribute-parser.js',
     'options-view.js',
     'output-parser.js',
     'poller.js',
--- a/tools/lint/eslint/modules.json
+++ b/tools/lint/eslint/modules.json
@@ -104,17 +104,16 @@
   "history.jsm": ["HistoryEntry", "DumpHistory"],
   "Http.jsm": ["httpRequest", "percentEncode"],
   "httpd.js": ["HTTP_400", "HTTP_401", "HTTP_402", "HTTP_403", "HTTP_404", "HTTP_405", "HTTP_406", "HTTP_407", "HTTP_408", "HTTP_409", "HTTP_410", "HTTP_411", "HTTP_412", "HTTP_413", "HTTP_414", "HTTP_415", "HTTP_417", "HTTP_500", "HTTP_501", "HTTP_502", "HTTP_503", "HTTP_504", "HTTP_505", "HttpError", "HttpServer"],
   "import_module.jsm": ["MODULE_IMPORTED", "MODULE_URI", "SUBMODULE_IMPORTED", "same_scope", "SUBMODULE_IMPORTED_TO_SCOPE"],
   "import_sub_module.jsm": ["SUBMODULE_IMPORTED", "test_obj"],
   "InlineSpellChecker.jsm": ["InlineSpellChecker", "SpellCheckHelper"],
   "JNI.jsm": ["JNI", "android_log"],
   "JSDOMParser.js": ["JSDOMParser"],
-  "Jsbeautify.jsm": ["jsBeautify"],
   "jsdebugger.jsm": ["addDebuggerToGlobal"],
   "json2.js": ["JSON"],
   "keys.js": ["BulkKeyBundle", "SyncKeyBundle"],
   "KeyValueParser.jsm": ["parseKeyValuePairsFromLines", "parseKeyValuePairs", "parseKeyValuePairsFromFile", "parseKeyValuePairsFromFileAsync"],
   "kinto-http-client.js": ["KintoHttpClient"],
   "kinto-offline-client.js": ["Kinto"],
   "kinto-storage-adapter.js": ["FirefoxAdapter"],
   "L10nRegistry.jsm": ["L10nRegistry", "FileSource", "IndexedFileSource"],