Skip to content

Commit eb27800

Browse files
Remove unuused code
1 parent 571275a commit eb27800

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

vm/src/vm/runners/cairo_runner_2.rs

-28
Original file line numberDiff line numberDiff line change
@@ -450,31 +450,3 @@ pub fn get_entrypoint_builtins(entrypoint: &ExecutableEntryPoint) -> Vec<Builtin
450450

451451
builtins
452452
}
453-
454-
/// TODO: Determine if we receive the hint collection or build it ourselves
455-
/// This function was adapted from cairo-lang-runner
456-
pub fn build_hint_collection(
457-
hints: &[(usize, Vec<Hint>)],
458-
program_length: usize,
459-
) -> HintsCollection {
460-
let mut hint_map: BTreeMap<usize, Vec<HintParams>> = BTreeMap::new();
461-
462-
for (offset, offset_hints) in hints {
463-
hint_map.insert(
464-
*offset,
465-
offset_hints
466-
.iter()
467-
.map(|_| HintParams {
468-
code: format!("{offset}"),
469-
accessible_scopes: vec![],
470-
flow_tracking_data: FlowTrackingData {
471-
ap_tracking: ApTracking::new(),
472-
reference_ids: HashMap::new(),
473-
},
474-
})
475-
.collect(),
476-
);
477-
}
478-
479-
HintsCollection::new(&hint_map, program_length).expect("failed to build hint collection")
480-
}

0 commit comments

Comments
 (0)