mirror of
https://github.com/wezm/advent-of-code.git
synced 2024-12-18 10:19:55 +00:00
Remove TODOs that were addressed
This commit is contained in:
parent
dd4d9a7f6f
commit
54b3860012
1 changed files with 0 additions and 2 deletions
|
@ -27,7 +27,6 @@ impl Operand {
|
|||
|
||||
fn value(&self, machine: &Machine) -> isize {
|
||||
match *self {
|
||||
// TODO: Sdd a get to Machine
|
||||
Operand::Register(ref reg) => machine.registers.get(reg).map(|val| *val).unwrap_or(0),
|
||||
Operand::Immediate(val) => val,
|
||||
}
|
||||
|
@ -79,7 +78,6 @@ impl Program {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Machine executes programs and instructions
|
||||
#[derive(Debug)]
|
||||
struct Machine {
|
||||
pid: usize,
|
||||
|
|
Loading…
Reference in a new issue