Skip to content

Commit a8c550e

Browse files
committed
chore(imports): remove non-essential comments
1 parent efd8e51 commit a8c550e

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/configuration/resolve_config.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ pub fn resolve_config(config: ConfigKeyMap, global_config: &GlobalConfiguration)
341341

342342
diagnostics.extend(get_unknown_property_diagnostics(config));
343343

344-
// Surface compile-time diagnostics for module.importGroups.
345344
if !resolved_config.module_import_groups.is_empty() {
346345
let mut compile_diags: Vec<String> = Vec::new();
347346
let _ = crate::generation::imports::resolved::compile(&resolved_config, &mut compile_diags);

src/generation/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ impl<'a> Context<'a> {
9393
) -> Context<'a> {
9494
let mut _import_group_diags: Vec<String> = Vec::new();
9595
let resolved_import_groups = crate::generation::imports::resolved::compile(config, &mut _import_group_diags);
96-
// diagnostics dropped here for now; surfaced via resolve_config in a later task.
9796
Context {
9897
media_type,
9998
program,

src/generation/generate.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7576,7 +7576,6 @@ fn get_stmt_groups<'a>(stmts: Vec<Node<'a>>, context: &mut Context<'a>) -> Vec<S
75767576
groups.push(current_group);
75777577
}
75787578

7579-
// Partition import groups when feature enabled.
75807579
// Take `resolved_import_groups` out of `context` so we can mutably borrow
75817580
// `context` to mark captured comments handled. Put it back when done.
75827581
let resolved_opt = context.resolved_import_groups.take();
@@ -7640,8 +7639,6 @@ fn get_stmt_groups<'a>(stmts: Vec<Node<'a>>, context: &mut Context<'a>) -> Vec<S
76407639
// it and the node start AND no blank-line gap between it and any
76417640
// following attached comment. We walk from the node upward.
76427641
let node_start_line = node.start_line_fast(context.program);
7643-
// Find longest suffix of `comments` where consecutive lines have no
7644-
// blank-line gap between them or between the last one and the node.
76457642
let mut attached_start = comments.len();
76467643
let mut next_line = node_start_line;
76477644
for i in (0..comments.len()).rev() {
@@ -7687,7 +7684,6 @@ fn get_stmt_groups<'a>(stmts: Vec<Node<'a>>, context: &mut Context<'a>) -> Vec<S
76877684
g.captured_detached_header = captured_detached_header;
76887685
}
76897686
}
7690-
// Restore the resolved groups so later code paths still see them.
76917687
context.resolved_import_groups = resolved_opt;
76927688

76937689
groups

0 commit comments

Comments
 (0)