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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.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/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index 8fb0910e472eef0681a930308444835e3a684097..c11358855b82f2a2b545820dc842c05208a48fb0 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -993,8 +993,6 @@ Timeline.TimelineUIUtils = class {
* @param {!Object} aggregatedStats
*/
static _collectAggregatedStatsForRecord(record, startTime, endTime, aggregatedStats) {
- var records = [];
-
if (!record.endTime() || record.endTime() < startTime || record.startTime() > endTime)
return;
@@ -1023,7 +1021,6 @@ Timeline.TimelineUIUtils = class {
var contentHelper = new Timeline.TimelineDetailsContentHelper(target, linkifier);
var duration = request.endTime - (request.startTime || -Infinity);
- var items = [];
if (request.url)
contentHelper.appendElementRow(Common.UIString('URL'), Components.Linkifier.linkifyURL(request.url));
if (isFinite(duration))
@@ -1511,7 +1508,6 @@ Timeline.TimelineUIUtils = class {
* @return {!Element}
*/
static generateDetailsContentForFrame(frameModel, frame, filmStripFrame) {
- var pieChart = Timeline.TimelineUIUtils.generatePieChart(frame.timeByCategory);
var contentHelper = new Timeline.TimelineDetailsContentHelper(null, null);
contentHelper.addSection(Common.UIString('Frame'));

Powered by Google App Engine
This is Rietveld 408576698