Skip to content

Commit b90559c

Browse files
authored
[turbopack] Remove a bunch of dead code from the source map implementation (#84318)
The `SourceMap::Sectioned` enum was only used recursively. once i noticed that a bunch of dead code fell out. Part-of PACK-417
1 parent 031b8fb commit b90559c

File tree

4 files changed

+85
-292
lines changed

4 files changed

+85
-292
lines changed

crates/napi/src/next_api/project.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,12 +1491,10 @@ pub async fn project_trace_source_operation(
14911491
return Ok(Vc::cell(None));
14921492
};
14931493

1494-
let token = map
1495-
.lookup_token(
1496-
line.saturating_sub(1),
1497-
frame.column.unwrap_or(1).saturating_sub(1),
1498-
)
1499-
.await?;
1494+
let token = map.lookup_token(
1495+
line.saturating_sub(1),
1496+
frame.column.unwrap_or(1).saturating_sub(1),
1497+
);
15001498

15011499
let (original_file, line, column, method_name) = match token {
15021500
Token::Original(token) => (

0 commit comments

Comments
 (0)