Skip to content

Commit f0d1498

Browse files
committed
Revert "WIP: populate numlines table"
This reverts commit 62bf58b.
1 parent 37cce23 commit f0d1498

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

extractor/src/extractor.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,6 @@ impl TrapWriter {
8181
file_label
8282
}
8383

84-
fn populate_numlines(&mut self, file_label: Label, tree: &Tree) {
85-
let root_node = tree.root_node();
86-
let start_line = root_node.start_position().row;
87-
let end_line = root_node.end_position().row;
88-
let total_line_count = end_line - start_line + 1;
89-
90-
// TODO: the code and comment counts are completely wrong
91-
92-
self.add_tuple(
93-
"numlines",
94-
vec![
95-
Arg::Label(file_label),
96-
Arg::Int(total_line_count),
97-
Arg::Int(total_line_count),
98-
Arg::Int(total_line_count),
99-
],
100-
);
101-
}
102-
10384
fn populate_parent_folders(&mut self, child_label: Label, path: Option<&Path>) {
10485
let mut path = path;
10586
let mut child_label = child_label;
@@ -192,7 +173,6 @@ pub fn extract(
192173
let mut trap_writer = new_trap_writer();
193174
trap_writer.comment(format!("Auto-generated TRAP file for {}", path.display()));
194175
let file_label = &trap_writer.populate_file(path);
195-
&trap_writer.populate_numlines(*file_label, &tree);
196176
let mut visitor = Visitor {
197177
source: &source,
198178
trap_writer: trap_writer,

0 commit comments

Comments
 (0)