Bug 1476659, remove invertSelection from comm-central, r=jorgk
authorAlexander J. Vincent <ajvincent@gmail.com>
Mon, 28 Oct 2019 20:58:25 +0000
changeset 36504 eed3e970361e97ddefd899e871270cbeb0c76ac4
parent 36503 6797b9e2d931c09eded207fb833579a86b3c4c27
child 36505 656e414f283048dc645f91325b2444f7fabbb636
push id2534
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:52:51 +0000
treeherdercomm-beta@055c50840778 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1476659
Bug 1476659, remove invertSelection from comm-central, r=jorgk Differential Revision: https://phabricator.services.mozilla.com/D50392
mailnews/base/util/jsTreeSelection.js
--- a/mailnews/base/util/jsTreeSelection.js
+++ b/mailnews/base/util/jsTreeSelection.js
@@ -404,23 +404,16 @@ JSTreeSelection.prototype = {
     this._ranges = [];
     if (this._tree) {
       this._tree.invalidate();
     }
     this._fireSelectionChanged();
   },
 
   /**
-   * Not even nsTreeSelection implements this.
-   */
-  invertSelection() {
-    throw new Error("Who really was going to use this?");
-  },
-
-  /**
    * Select all with no rows is a no-op, otherwise we select all and notify.
    */
   selectAll() {
     if (!this._view) {
       return;
     }
 
     let view = this._view;