clean up unused
Signed-off-by: Rachel <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@@ -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>) {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user