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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkOverview.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/network/NetworkOverview.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkOverview.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkOverview.js
index 5b53515b8c6b9347eeb186a62bc141e9437a5513..a283e507616adee1e0ce55fb8725b2713204113f 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkOverview.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkOverview.js
@@ -11,12 +11,6 @@ Network.NetworkOverview = class extends UI.TimelineOverviewBase {
/** @type {number} */
this._numBands = 1;
- /** @type {number} */
- this._windowStart = 0;
- /** @type {number} */
- this._windowEnd = 0;
- /** @type {boolean} */
- this._restoringWindow = false;
/** @type {boolean} */
this._updateScheduled = false;
@@ -118,8 +112,6 @@ Network.NetworkOverview = class extends UI.TimelineOverviewBase {
* @override
*/
reset() {
- this._windowStart = 0;
- this._windowEnd = 0;
/** @type {?Components.FilmStripModel} */
this._filmStripModel = null;
@@ -167,16 +159,9 @@ Network.NetworkOverview = class extends UI.TimelineOverviewBase {
var span = calculator.boundarySpan();
while (this._span < span)
this._span *= 1.25;
+
calculator.setBounds(calculator.minimumBoundary(), calculator.minimumBoundary() + this._span);
this._lastBoundary = new Network.NetworkTimeBoundary(calculator.minimumBoundary(), calculator.maximumBoundary());
- if (this._windowStart || this._windowEnd) {
- this._restoringWindow = true;
- var startTime = calculator.minimumBoundary();
- var totalTime = calculator.boundarySpan();
- var left = (this._windowStart - startTime) / totalTime;
- var right = (this._windowEnd - startTime) / totalTime;
- this._restoringWindow = false;
- }
}
var context = this.context();

Powered by Google App Engine
This is Rietveld 408576698