Remove duplicated code
This commit is contained in:
parent
a20667f720
commit
38709f0de0
@ -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--) {
|
||||||
|
Loading…
Reference in New Issue
Block a user