clean up unused

Signed-off-by: Rachel <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel
2024-03-25 16:01:07 -07:00
parent e9df98a4c2
commit 22348a8f68
3 changed files with 8 additions and 3 deletions

View File

@@ -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>) {

View File

@@ -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(),

View File

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