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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.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/timeline/TimelinePanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
index 61fe3f9314e7d7b23258fe557b9697d30898c70a..4072d5ae9fcc87d14d06d86be8d9d7be3daef6fc 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -424,10 +424,8 @@ Timeline.TimelinePanel = class extends UI.Panel {
hasSelection = true;
}
var predefinedRates = new Map([
- [1, Common.UIString('No CPU throttling')],
- [2, Common.UIString('2\xD7 slowdown')],
- [5, Common.UIString('5\xD7 slowdown')],
- [10, Common.UIString('10\xD7 slowdown')],
+ [1, Common.UIString('No CPU throttling')], [2, Common.UIString('2\xD7 slowdown')],
+ [5, Common.UIString('5\xD7 slowdown')], [10, Common.UIString('10\xD7 slowdown')],
[20, Common.UIString('20\xD7 slowdown')]
]);
for (var rate of predefinedRates)
@@ -1064,7 +1062,7 @@ Timeline.TimelinePanel = class extends UI.Panel {
*/
_showSnapshotInPaintProfiler(snapshot) {
var paintProfilerView = this._paintProfilerView();
- var hasProfileData = paintProfilerView.setSnapshot(snapshot);
+ paintProfilerView.setSnapshot(snapshot);
if (!this._detailsView.hasTab(Timeline.TimelinePanel.DetailsTab.PaintProfiler)) {
this._detailsView.appendTab(
Timeline.TimelinePanel.DetailsTab.PaintProfiler, Common.UIString('Paint Profiler'), paintProfilerView,

Powered by Google App Engine
This is Rietveld 408576698