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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/Spectrum.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/components/Spectrum.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
index c714b4a8d0bb8762c5991a4baced524f836e3e2d..1978f6c9a042c4e9f89203d4b8c1075e039510b0 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
@@ -277,9 +277,6 @@ Components.Spectrum = class extends UI.VBox {
}
this._paletteContainerMutable = palette.mutable;
- var numItems = palette.colors.length;
- if (palette.mutable)
- numItems++;
if (palette.mutable) {
this._paletteContainer.appendChild(this._addColorToolbar.element);
this._paletteContainer.appendChild(this._deleteIconToolbar.element);

Powered by Google App Engine
This is Rietveld 408576698