Skip to content

Commit

Permalink
clean up unused
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel <[email protected]>
  • Loading branch information
Ryex committed Mar 25, 2024
1 parent e9df98a commit 22348a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ic10emu/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::{
collections::HashSet,
env,
fs::{self, File},
io::{BufRead, BufReader, BufWriter, Write},
path::{Path, PathBuf},
io::{BufWriter, Write},
path::Path,
};

fn write_logictypes(logictypes_grammar: &mut HashSet<String>) {
Expand Down
5 changes: 5 additions & 0 deletions ic10emu/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ impl FromStr for Operand {
name: s.to_string(),
value: *val as f64,
}))
} else if let Some(val) = SLOT_TYPE_LOOKUP.get(s) {
Ok(Operand::LogicType(LogicType {
name: s.to_string(),
value: *val as f64,
}))
} else if let Some(val) = BATCH_MODE_LOOKUP.get(s) {
Ok(Operand::LogicType(LogicType {
name: s.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion ic10emu/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl IC {
}

/// processes one line of the contained program
pub fn step(&mut self, housing: &mut crate::Device, vm: &mut crate::VM) -> Result<(), ICError> {
pub fn step(&mut self, _housing: &mut crate::Device, _vm: &mut crate::VM) -> Result<(), ICError> {
use grammar::InstructionOp::*;
use grammar::*;
use ICError::*;
Expand Down

0 comments on commit 22348a8

Please sign in to comment.