Bug 1506546 - Remove unused AddonClient module. r=jdescottes
☠☠ backed out by c19baae766e9 ☠ ☠
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 27 Nov 2018 11:23:33 +0000
changeset 507453 fbe3f2183f32134a867db07f07352fb33428ea3c
parent 507452 8972a2f1401568be3e4af284ac02af215f330209
child 507454 e6867843444fdb9f9c0957d0548ff2d4dfe051f2
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1506546
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1506546 - Remove unused AddonClient module. r=jdescottes MozReview-Commit-ID: ExKMirBQJ3K Depends on D12578 Differential Revision: https://phabricator.services.mozilla.com/D12951
devtools/shared/client/addon-client.js
devtools/shared/client/moz.build
deleted file mode 100644
--- a/devtools/shared/client/addon-client.js
+++ /dev/null
@@ -1,43 +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";
-
-const {DebuggerClient} = require("devtools/shared/client/debugger-client");
-
-function AddonClient(client, actor) {
-  this._client = client;
-  this._actor = actor;
-  this.request = this._client.request;
-  this.events = [];
-}
-
-AddonClient.prototype = {
-  get actor() {
-    return this._actor;
-  },
-  get _transport() {
-    return this._client._transport;
-  },
-
-  /**
-   * Detach the client from the addon actor.
-   *
-   * @param function onResponse
-   *        Called with the response packet.
-   */
-  detach: DebuggerClient.requester({
-    type: "detach",
-  }, {
-    after: function(response) {
-      if (this._client.activeAddon === this) {
-        this._client.activeAddon = null;
-      }
-      this._client.unregisterClient(this);
-      return response;
-    },
-  }),
-};
-
-module.exports = AddonClient;
--- a/devtools/shared/client/moz.build
+++ b/devtools/shared/client/moz.build
@@ -1,16 +1,15 @@
 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # 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/.
 
 DevToolsModules(
-    'addon-client.js',
     'array-buffer-client.js',
     'breakpoint-client.js',
     'connection-manager.js',
     'constants.js',
     'debugger-client.js',
     'environment-client.js',
     'event-source.js',
     'long-string-client.js',