Web Inspector: Remove unused expandTreeElementsWhenArrowing property from TreeOutline
https://bugs.webkit.org/show_bug.cgi?id=145470

Reviewed by Joseph Pecoraro.

* UserInterface/Views/TreeOutline.js:
(WebInspector.TreeOutline.prototype._treeKeyDown):
Replaced uses of removed property with boolean literal.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@185011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebInspectorUI/ChangeLog b/Source/WebInspectorUI/ChangeLog
index 07be739..909cf29 100644
--- a/Source/WebInspectorUI/ChangeLog
+++ b/Source/WebInspectorUI/ChangeLog
@@ -1,3 +1,14 @@
+2015-05-29  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: Remove unused expandTreeElementsWhenArrowing property from TreeOutline
+        https://bugs.webkit.org/show_bug.cgi?id=145470
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/TreeOutline.js:
+        (WebInspector.TreeOutline.prototype._treeKeyDown):
+        Replaced uses of removed property with boolean literal.
+
 2015-05-29  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Tabs should have Context Menus
diff --git a/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js b/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
index b46d188..f3b6346 100644
--- a/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
+++ b/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js
@@ -40,7 +40,6 @@
         this._childrenListNode.removeChildren();
         this._knownTreeElements = [];
         this._treeElementsExpandedState = [];
-        this.expandTreeElementsWhenArrowing = false;
         this.allowsRepeatSelection = false;
         this.root = true;
         this.hasChildren = false;
@@ -401,12 +400,12 @@
         if (event.keyIdentifier === "Up" && !event.altKey) {
             nextSelectedElement = this.selectedTreeElement.traversePreviousTreeElement(true);
             while (nextSelectedElement && !nextSelectedElement.selectable)
-                nextSelectedElement = nextSelectedElement.traversePreviousTreeElement(!this.expandTreeElementsWhenArrowing);
+                nextSelectedElement = nextSelectedElement.traversePreviousTreeElement(true);
             handled = nextSelectedElement ? true : false;
         } else if (event.keyIdentifier === "Down" && !event.altKey) {
             nextSelectedElement = this.selectedTreeElement.traverseNextTreeElement(true);
             while (nextSelectedElement && !nextSelectedElement.selectable)
-                nextSelectedElement = nextSelectedElement.traverseNextTreeElement(!this.expandTreeElementsWhenArrowing);
+                nextSelectedElement = nextSelectedElement.traverseNextTreeElement(true);
             handled = nextSelectedElement ? true : false;
         } else if (event.keyIdentifier === "Left") {
             if (this.selectedTreeElement.expanded) {