Skip to content

Commit

Permalink
remove as_any_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
YairVaknin-starkware committed Dec 2, 2024
1 parent 5b287e4 commit db5e47a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ impl BuiltinHintProcessor {
}

impl HintProcessorLogic for BuiltinHintProcessor {
fn as_any_mut(&mut self) -> &mut dyn Any {
self
}
fn execute_hint(
&mut self,
vm: &mut VirtualMachine,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1286,10 +1286,6 @@ impl HintProcessorLogic for Cairo1HintProcessor {
}
Ok(())
}

fn as_any_mut(&mut self) -> &mut dyn Any {
self
}
}

impl ResourceTracker for Cairo1HintProcessor {
Expand Down
1 change: 0 additions & 1 deletion vm/src/hint_processor/hint_processor_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ pub trait HintProcessorLogic {
}))
}

fn as_any_mut(&mut self) -> &mut dyn Any;
#[cfg(feature = "extensive_hints")]
// Executes the hint which's data is provided by a dynamic structure previously created by compile_hint
// Also returns a map of hints to be loaded after the current hint is executed
Expand Down
5 changes: 0 additions & 5 deletions vm/src/tests/run_deprecated_contract_class_simplified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
use crate::stdlib::{collections::HashMap, prelude::*};

use crate::stdlib::any::Any;
use crate::Felt252;
use num_traits::Zero;
#[cfg(target_arch = "wasm32")]
Expand Down Expand Up @@ -124,10 +123,6 @@ impl HintProcessorLogic for SimplifiedOsHintProcessor {
code => Err(HintError::UnknownHint(code.to_string().into_boxed_str())),
}
}

fn as_any_mut(&mut self) -> &mut dyn Any {
self
}
}

// Hints & Hint impls
Expand Down

0 comments on commit db5e47a

Please sign in to comment.