Skip to content

Commit ab01a37

Browse files
remove as_any_mut
1 parent 5b287e4 commit ab01a37

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ impl BuiltinHintProcessor {
180180
}
181181

182182
impl HintProcessorLogic for BuiltinHintProcessor {
183-
fn as_any_mut(&mut self) -> &mut dyn Any {
184-
self
185-
}
186183
fn execute_hint(
187184
&mut self,
188185
vm: &mut VirtualMachine,

vm/src/hint_processor/cairo_1_hint_processor/hint_processor.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,10 +1286,6 @@ impl HintProcessorLogic for Cairo1HintProcessor {
12861286
}
12871287
Ok(())
12881288
}
1289-
1290-
fn as_any_mut(&mut self) -> &mut dyn Any {
1291-
self
1292-
}
12931289
}
12941290

12951291
impl ResourceTracker for Cairo1HintProcessor {

vm/src/hint_processor/hint_processor_definition.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ pub trait HintProcessorLogic {
5050
ids_data: get_ids_data(reference_ids, references)?,
5151
}))
5252
}
53-
54-
fn as_any_mut(&mut self) -> &mut dyn Any;
5553
#[cfg(feature = "extensive_hints")]
5654
// Executes the hint which's data is provided by a dynamic structure previously created by compile_hint
5755
// Also returns a map of hints to be loaded after the current hint is executed

vm/src/tests/run_deprecated_contract_class_simplified.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ impl HintProcessorLogic for SimplifiedOsHintProcessor {
124124
code => Err(HintError::UnknownHint(code.to_string().into_boxed_str())),
125125
}
126126
}
127-
128-
fn as_any_mut(&mut self) -> &mut dyn Any {
129-
self
130-
}
131127
}
132128

133129
// Hints & Hint impls

0 commit comments

Comments
 (0)