Skip to content

Commit

Permalink
Bug 587835 - Remove all dev menu code [r+a=dolske]
Browse files Browse the repository at this point in the history
  • Loading branch information
mitcho committed Nov 24, 2010
1 parent e0c62fd commit 8e08e41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 76 deletions.
1 change: 0 additions & 1 deletion browser/base/content/tabview/groupitems.js
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,6 @@ let GroupItems = {
// Arranges all of the groupItems into a grid.
arrange: function GroupItems_arrange() {
var bounds = Items.getPageBounds();
bounds.bottom -= 20; // for the dev menu

var count = this.groupItems.length - 1;
var columns = Math.ceil(Math.sqrt(count));
Expand Down
75 changes: 0 additions & 75 deletions browser/base/content/tabview/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ let UI = {
self.exit();
self.blurAll();
});

// ___ Dev Menu
// This dev menu is not meant for shipping, nor is it of general
// interest, but we still need it for the time being. Change the
// false below to enable; just remember to change back before
// committing. Bug 586721 will track the ultimate removal.
if (false)
this._addDevMenu();

// When you click on the background/empty part of TabView,
// we create a new groupItem.
Expand Down Expand Up @@ -1177,73 +1169,6 @@ let UI = {
self.goToTab(gBrowser.selectedTab);
},

// ----------
// Function: _addDevMenu
// Fills out the "dev menu" in the TabView UI.
_addDevMenu: function UI__addDevMenu() {
try {
var self = this;

var $select = iQ("<select>")
.css({
position: "absolute",
bottom: 5,
right: 5,
zIndex: 99999,
opacity: .2
})
.appendTo("#content")
.change(function () {
var index = iQ(this).val();
try {
commands[index].code.apply(commands[index].element);
} catch(e) {
Utils.log("dev menu error", e);
}
iQ(this).val(0);
});

var commands = [{
name: "dev menu",
code: function() { }
}, {
name: "show trenches",
code: function() {
Trenches.toggleShown();
iQ(this).html((Trenches.showDebug ? "hide" : "show") + " trenches");
}
}, {
/*
name: "refresh",
code: function() {
location.href = "tabview.html";
}
}, {
name: "reset",
code: function() {
self.reset();
}
}, {
*/
name: "save",
code: function() {
self._saveAll();
}
}];

var count = commands.length;
var a;
for (a = 0; a < count; a++) {
commands[a].element = (iQ("<option>")
.val(a)
.html(commands[a].name)
.appendTo($select))[0];
}
} catch(e) {
Utils.log(e);
}
},

// ----------
// Function: storageSanity
// Given storage data for this object, returns true if it looks valid.
Expand Down

0 comments on commit 8e08e41

Please sign in to comment.