Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Unified Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: A new unused variable was born Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
index 380539887c3eac646f0cf1fadc2fda6971a9a6d1..88396b149517201432413d44bd30bfb26799dbca 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
@@ -347,8 +347,6 @@ Accessibility.AXValueSourceTreeElement = class extends Accessibility.AXNodePrope
*/
appendIDRefValueElement(value) {
var relatedNodes = value.relatedNodes;
- var numNodes = relatedNodes.length;
- var valueElement;
var idrefs = value.value.trim().split(/\s+/);
if (idrefs.length === 1) {
@@ -400,7 +398,6 @@ Accessibility.AXValueSourceTreeElement = class extends Accessibility.AXNodePrope
var nameElement = createElement('span');
var AXValueSourceType = Protocol.Accessibility.AXValueSourceType;
var type = source.type;
- var name;
switch (type) {
case AXValueSourceType.Attribute:
case AXValueSourceType.Placeholder:

Powered by Google App Engine
This is Rietveld 408576698