Skip to content

Commit c6df456

Browse files
committed
cogen sync McStas/McXtrace
1 parent 1dd8d5a commit c6df456

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

mcstas/src/cogen.c.in

-2
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,6 @@ int cogen_decls(struct instr_def *instr)
11641164
index = list_len(instr->grouplist); // count GROUP
11651165
liter = list_iterate(instr->complist);
11661166
while((comp = list_next(liter)) != NULL) {
1167-
//It seems that JUMP alone does not require this struct?!
1168-
//index += list_len(comp->jump); // count JUMP
11691167
if (comp->split) index++; // count SPLIT
11701168
}
11711169
list_iterate_end(liter);

mcxtrace/src/cogen.c.in

-1
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ int cogen_decls(struct instr_def *instr)
11661166
index = list_len(instr->grouplist); // count GROUP
11671167
liter = list_iterate(instr->complist);
11681168
while((comp = list_next(liter)) != NULL) {
1169-
index += list_len(comp->jump); // count JUMP
11701169
if (comp->split) index++; // count SPLIT
11711170
}
11721171
list_iterate_end(liter);

0 commit comments

Comments
 (0)