Bug 814844 - [toolbox] The _onCloseClick function in ToolbarView is never used, r=rcampbell
authorVictor Porof <vporof@mozilla.com>
Thu, 20 Dec 2012 19:20:50 +0200
changeset 116653 b99d6a6557f479318a9f941c251966ae9325c4bd
parent 116652 6701cd570f128fe96e9d36177a49cea2e0f57ac7
child 116654 7a3d7c03aab5109d0c21d3f1a226c187e4a00528
push idunknown
push userunknown
push dateunknown
reviewersrcampbell
bugs814844
milestone20.0a1
Bug 814844 - [toolbox] The _onCloseClick function in ToolbarView is never used, r=rcampbell
browser/devtools/debugger/debugger-toolbar.js
--- a/browser/devtools/debugger/debugger-toolbar.js
+++ b/browser/devtools/debugger/debugger-toolbar.js
@@ -6,17 +6,16 @@
 "use strict";
 
 /**
  * Functions handling the toolbar view: close button, expand/collapse button,
  * pause/resume and stepping buttons etc.
  */
 function ToolbarView() {
   dumpn("ToolbarView was instantiated");
-  this._onCloseClick = this._onCloseClick.bind(this);
   this._onTogglePanesPressed = this._onTogglePanesPressed.bind(this);
   this._onResumePressed = this._onResumePressed.bind(this);
   this._onStepOverPressed = this._onStepOverPressed.bind(this);
   this._onStepInPressed = this._onStepInPressed.bind(this);
   this._onStepOutPressed = this._onStepOutPressed.bind(this);
 }
 
 ToolbarView.prototype = {
@@ -104,23 +103,16 @@ ToolbarView.prototype = {
    * @param boolean aVisibleFlag
    *        Specifies the intended visibility.
    */
   toggleSourcesContainer: function DVT_toggleSourcesContainer(aVisibleFlag) {
     this._sources.setAttribute("hidden", !aVisibleFlag);
   },
 
   /**
-   * Listener handling the close button click event.
-   */
-  _onCloseClick: function DVT__onCloseClick() {
-    DebuggerController._shutdownDebugger();
-  },
-
-  /**
    * Listener handling the toggle button click event.
    */
   _onTogglePanesPressed: function DVT__onTogglePanesPressed() {
     DebuggerView.togglePanes({
       visible: DebuggerView.panesHidden,
       animated: true
     });
   },