1
0
Fork 0
mirror of https://github.com/HenkKalkwater/aoc-2020 synced 2024-11-25 04:25:17 +00:00

Remove writeln

This commit is contained in:
Chris Josten 2020-12-09 15:47:31 +01:00
parent c138d30ea1
commit 53c5a606ee
Signed by: chris
GPG key ID: 1795A594046530AB

View file

@ -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: