From db5e47ac73a13fbb57679934da0a0c346eb9dfd8 Mon Sep 17 00:00:00 2001 From: YairVaknin-starkware Date: Mon, 2 Dec 2024 19:55:22 +0200 Subject: [PATCH] remove `as_any_mut` --- .../builtin_hint_processor_definition.rs | 3 --- .../hint_processor/cairo_1_hint_processor/hint_processor.rs | 4 ---- vm/src/hint_processor/hint_processor_definition.rs | 1 - vm/src/tests/run_deprecated_contract_class_simplified.rs | 5 ----- 4 files changed, 13 deletions(-) diff --git a/vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs b/vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs index bc1519d5f3..fcc6ad0dcc 100644 --- a/vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs +++ b/vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs @@ -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, diff --git a/vm/src/hint_processor/cairo_1_hint_processor/hint_processor.rs b/vm/src/hint_processor/cairo_1_hint_processor/hint_processor.rs index ae3f16e91d..9b6e4b8651 100644 --- a/vm/src/hint_processor/cairo_1_hint_processor/hint_processor.rs +++ b/vm/src/hint_processor/cairo_1_hint_processor/hint_processor.rs @@ -1286,10 +1286,6 @@ impl HintProcessorLogic for Cairo1HintProcessor { } Ok(()) } - - fn as_any_mut(&mut self) -> &mut dyn Any { - self - } } impl ResourceTracker for Cairo1HintProcessor { diff --git a/vm/src/hint_processor/hint_processor_definition.rs b/vm/src/hint_processor/hint_processor_definition.rs index 05b1db2cdc..496e8b1428 100644 --- a/vm/src/hint_processor/hint_processor_definition.rs +++ b/vm/src/hint_processor/hint_processor_definition.rs @@ -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 diff --git a/vm/src/tests/run_deprecated_contract_class_simplified.rs b/vm/src/tests/run_deprecated_contract_class_simplified.rs index 3b00fc66b2..c097cf7428 100644 --- a/vm/src/tests/run_deprecated_contract_class_simplified.rs +++ b/vm/src/tests/run_deprecated_contract_class_simplified.rs @@ -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")] @@ -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