Remove duplicated code

This commit is contained in:
Jan-Niclas Loosen 2025-01-07 16:05:38 +01:00
parent a20667f720
commit 38709f0de0

View File

@ -19,18 +19,6 @@ statement_counter := visitor {
} }
}; };
visit(p, visitor {
before node: CodeRepository -> {
for (minus_year: int=22; minus_year >= 0; minus_year--) {
cur_date = addyear(now(), -minus_year);
snapshot := getsnapshot(node, cur_date);
foreach (i: int; def(snapshot[i]))
visit(snapshot[i], statement_counter);
}
}
});
visit(p, visitor { visit(p, visitor {
before node: CodeRepository -> { before node: CodeRepository -> {
for (minus_year: int=22; minus_year >= 0; minus_year--) { for (minus_year: int=22; minus_year >= 0; minus_year--) {