remove unused "mask" code

This commit is contained in:
2020-10-10 15:17:39 +02:00
parent 3a8895b790
commit 8ea60f52eb
9 changed files with 29 additions and 125 deletions
+2 -3
View File
@@ -6,7 +6,6 @@ use crsn::module::{CrsnExtension, ParseRes, CrsnUniq};
use crsn::runtime::fault::Fault;
use crsn::runtime::run_thread::{RunState};
use crsn::sexp::SourcePosition;
use crsn::asm::data::Mask;
use std::io::{Write};
use std::convert::TryFrom;
use crsn::asm::instr::Cond;
@@ -66,7 +65,7 @@ impl CrsnExtension for StdioOps {
}
/// Run-time method called to read an object (using the object handle syntax)
fn read_obj(&self, state: &mut RunState, handle: Value, _mask: Mask)
fn read_obj(&self, state: &mut RunState, handle: Value)
-> Result<Option<Value>, Fault>
{
if handle == self.hdl_stdin {
@@ -82,7 +81,7 @@ impl CrsnExtension for StdioOps {
}
/// Run-time method called to write an object (using the object handle syntax)
fn write_obj(&self, state: &mut RunState, handle: Value, _mask: Mask, value: Value) -> Result<Option<()>, Fault>
fn write_obj(&self, state: &mut RunState, handle: Value, value: Value) -> Result<Option<()>, Fault>
{
state.clear_status();