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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.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/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index 9e93907ca897da2769d689a34b5c421b7b76b92b..d65b178575ce92c43a671b9f7bd506ff8b6ac788 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -516,7 +516,6 @@ Sources.SourcesPanel = class extends UI.Panel {
delete this._switchToPausedTargetTimeout;
if (this._paused)
return;
- var target = UI.context.flavor(SDK.Target);
if (debuggerModel.isPaused())
return;
var debuggerModels = SDK.DebuggerModel.instances();
@@ -861,7 +860,6 @@ Sources.SourcesPanel = class extends UI.Panel {
return;
var uiLocation = /** @type {!Workspace.UILocation} */ (object);
var uiSourceCode = uiLocation.uiSourceCode;
- var projectType = uiSourceCode.project().type();
var contentType = uiSourceCode.contentType();
if (contentType.hasScripts()) {

Powered by Google App Engine
This is Rietveld 408576698