Skip to content

Commit

Permalink
remove run_arbitrary_code
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan committed Aug 19, 2024
1 parent 439338e commit 58961c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions eravm-stable-interface/src/state_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ pub trait StateInterface {

fn pubdata(&self) -> i32;
fn set_pubdata(&mut self, value: i32);

/// it is run in kernel mode
fn run_arbitrary_code(code: &[u64]);
}

pub struct Flags {
Expand Down Expand Up @@ -229,10 +226,6 @@ impl StateInterface for DummyState {
fn set_pubdata(&mut self, _: i32) {
unimplemented!()
}

fn run_arbitrary_code(_: &[u64]) {
unimplemented!()
}
}

#[cfg(test)]
Expand Down
4 changes: 0 additions & 4 deletions src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ impl<T> StateInterface for VirtualMachine<T> {
fn set_pubdata(&mut self, value: i32) {
self.world_diff.pubdata.0 = value;
}

fn run_arbitrary_code(_code: &[u64]) {
todo!()
}
}

struct CallframeWrapper<'a, T> {
Expand Down

0 comments on commit 58961c6

Please sign in to comment.