Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-Bw3 committed May 21, 2024
1 parent a252081 commit 555a978
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/patterns/constructors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ use crate::{
patterns::{ActionNoValueType, ActionWithValueType},
};

// pub fn operator<T: 'static>(arg_count: usize, action: &'static ActionNoValueType) -> Box<ActionNoValueType> {
// Box::new(move |state: &mut State, pattern_registry: &PatternRegistry| {
// let stack_len = state.stack.len();

// if stack_len < arg_count {
// Err(Mishap::NotEnoughIotas(arg_count - stack_len))?}

// let args = &state.stack[stack_len-arg_count..];
// state.stack.remove_args(&1);
// let new_data = action(state, pattern_registry);

// state.stack

// todo!()

// })
// }

pub fn spell_1<T: Iota>() -> Box<ActionNoValueType> {
Box::new(move |state: &mut State, _: &PatternRegistry| {
state.stack.get_iota::<T>(0, 1)?;
Expand Down

0 comments on commit 555a978

Please sign in to comment.