File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed
vm/src/hint_processor/builtin_hint_processor Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff 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) ]
282250mod tests {
283251 use super :: * ;
You can’t perform that action at this time.
0 commit comments