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

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: 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/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 b373530ba02943e58f2f9cc12dd555a28fd168cb..97e65501799ff1df114640446743a50f726c7ed9 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -511,7 +511,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();
@@ -855,7 +854,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