Skip to content

Commit e2dfdb2

Browse files
Remove unused function!
1 parent 9b35055 commit e2dfdb2

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

vm/src/hint_processor/builtin_hint_processor/hint_utils.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -246,38 +246,6 @@ pub fn get_constant_from_scoped_name<'a>(
246246
}
247247
}
248248

249-
pub fn get_constant_from_alias<'a>(
250-
destination: &str,
251-
identifiers: &'a HashMap<String, Identifier>,
252-
) -> Result<&'a Felt252, HintError> {
253-
let identifier = identifiers
254-
.get(destination)
255-
.ok_or_else(|| HintError::MissingConstant(Box::new(destination.to_string())))?;
256-
257-
let identifier_type = identifier
258-
.type_
259-
.as_ref()
260-
.ok_or_else(|| HintError::MissingConstant(Box::new(destination.to_string())))?;
261-
262-
match &identifier_type[..] {
263-
"const" => identifier
264-
.value
265-
.as_ref()
266-
.ok_or_else(|| HintError::MissingConstant(Box::new(destination.to_string()))),
267-
"alias" => {
268-
let destination = identifier
269-
.destination
270-
.as_ref()
271-
.ok_or_else(|| HintError::MissingConstant(Box::new(destination.to_string())))?;
272-
273-
get_constant_from_alias(destination, identifiers)
274-
}
275-
_ => Err(HintError::MissingConstant(Box::new(
276-
destination.to_string(),
277-
))),
278-
}
279-
}
280-
281249
#[cfg(test)]
282250
mod tests {
283251
use super::*;

0 commit comments

Comments
 (0)