From bf793882d2dc2ab9335637e292aedc1588480826 Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Fri, 17 Mar 2023 08:03:08 +0000 Subject: [PATCH] Bug 1815937 - [devtools] Remove inline script displacement handling in source actor. r=devtools-reviewers,ochameau. This is all made unnecessary by the previous patch of the stack. Differential Revision: https://phabricator.services.mozilla.com/D170581 --- devtools/server/actors/source.js | 146 +++---------------------------- 1 file changed, 12 insertions(+), 134 deletions(-) diff --git a/devtools/server/actors/source.js b/devtools/server/actors/source.js index 4a2fc0c96388..038f6aaaf846 100644 --- a/devtools/server/actors/source.js +++ b/devtools/server/actors/source.js @@ -117,7 +117,6 @@ class SourceActor extends Actor { this._url = undefined; this._source = source; this.__isInlineSource = undefined; - this._startLineColumnDisplacement = null; } get _isInlineSource() { @@ -295,8 +294,8 @@ class SourceActor extends Actor { return true; } - async getBreakableLines() { - const positions = await this._getBreakpointPositions(); + getBreakableLines() { + const positions = this._getBreakpointPositions(); const lines = new Set(); for (const position of positions) { if (!lines.has(position.line)) { @@ -307,106 +306,6 @@ class SourceActor extends Actor { return Array.from(lines); } - // For inline