mirror of
https://github.com/HenkKalkwater/aoc-2020
synced 2024-11-25 12:35:16 +00:00
Remove writeln
This commit is contained in:
parent
c138d30ea1
commit
53c5a606ee
|
@ -61,7 +61,6 @@ int part1(ref Instruction[] instrs) {
|
||||||
|
|
||||||
while(!visited.canFind(pc)) {
|
while(!visited.canFind(pc)) {
|
||||||
Instruction curInstr = instrs[pc];
|
Instruction curInstr = instrs[pc];
|
||||||
writeln(pc, curInstr);
|
|
||||||
visited ~= [pc];
|
visited ~= [pc];
|
||||||
switch(curInstr.memomic) {
|
switch(curInstr.memomic) {
|
||||||
case Memomic.NOP:
|
case Memomic.NOP:
|
||||||
|
@ -105,7 +104,6 @@ int part2(ref Instruction[] instrs) {
|
||||||
|
|
||||||
while(!visited.canFind(pc)) {
|
while(!visited.canFind(pc)) {
|
||||||
Instruction curInstr = instrs[pc];
|
Instruction curInstr = instrs[pc];
|
||||||
writeln(pc, curInstr);
|
|
||||||
visited ~= [pc];
|
visited ~= [pc];
|
||||||
switch(curInstr.memomic) {
|
switch(curInstr.memomic) {
|
||||||
case Memomic.NOP:
|
case Memomic.NOP:
|
||||||
|
|
Loading…
Reference in a new issue