summaryrefslogtreecommitdiff
path: root/browser/devtools/framework/toolbox.js
diff options
context:
space:
mode:
authorsquarefractal <squarefractal@gmail.com>2015-06-22 10:14:04 +0200
committerPale Moon <git-repo@palemoon.org>2015-06-22 10:14:04 +0200
commitad2ef50dca00ebdb0ee1de2b29df4e01ebef5732 (patch)
treebd24dabc0bfd4b95b4a64c438ace7339b79f7ea6 /browser/devtools/framework/toolbox.js
parent933b2df0685aa41da8acadd6ec8abbecd5a9e33d (diff)
downloadpalemoon-gre-ad2ef50dca00ebdb0ee1de2b29df4e01ebef5732.tar.gz
Remove telemetry from devtools
Diffstat (limited to 'browser/devtools/framework/toolbox.js')
-rw-r--r--browser/devtools/framework/toolbox.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/browser/devtools/framework/toolbox.js b/browser/devtools/framework/toolbox.js
index 7288805a7..0784c5957 100644
--- a/browser/devtools/framework/toolbox.js
+++ b/browser/devtools/framework/toolbox.js
@@ -8,7 +8,6 @@ const {Cc, Ci, Cu} = require("chrome");
const MAX_ORDINAL = 99;
let Promise = require("sdk/core/promise");
let EventEmitter = require("devtools/shared/event-emitter");
-let Telemetry = require("devtools/shared/telemetry");
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.import("resource://gre/modules/Services.jsm");
@@ -59,7 +58,6 @@ XPCOMUtils.defineLazyGetter(this, "Requisition", function() {
function Toolbox(target, selectedTool, hostType) {
this._target = target;
this._toolPanels = new Map();
- this._telemetry = new Telemetry();
this._toolRegistered = this._toolRegistered.bind(this);
this._toolUnregistered = this._toolUnregistered.bind(this);
@@ -208,8 +206,6 @@ Toolbox.prototype = {
this._buildButtons();
this._addKeysToWindow();
- this._telemetry.toolOpened("toolbox");
-
this.selectTool(this._defaultToolId).then(function(panel) {
this.emit("ready");
deferred.resolve();
@@ -497,12 +493,7 @@ Toolbox.prototype = {
}
let tab = this.doc.getElementById("toolbox-tab-" + id);
- if (tab) {
- if (prevToolId) {
- this._telemetry.toolClosed(prevToolId);
- }
- this._telemetry.toolOpened(id);
- } else {
+ if (! tab) {
throw new Error("No tool found");
}
@@ -762,8 +753,6 @@ Toolbox.prototype = {
outstanding.push(this._host.destroy());
- this._telemetry.destroy();
-
// Targets need to be notified that the toolbox is being torn down, so that
// remote protocol connections can be gracefully terminated.
if (this._target) {