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

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: 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 30a63a3462dd2fb4a99a386666f3fd00dff4e4c3..f3395c42ff0a708f4d5fdb77452408c0d8583669 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Spectrum.js
@@ -276,9 +276,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