File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -505,15 +505,13 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
505505 auto data = mapping.data ;
506506
507507 NodeId import_id = UNKNOWN_NODEID ;
508- location_t locus = UNKNOWN_LOCATION ;
509508 std::string declared_name;
510509
511510 // FIXME: This needs to be done in `FinalizeImports`
512511 switch (rebind.get_new_bind_type ())
513512 {
514513 case AST ::UseTreeRebind::NewBindType::IDENTIFIER :
515514 declared_name = rebind.get_identifier ().as_string ();
516- locus = rebind.get_identifier ().get_locus ();
517515 import_id = rebind.get_node_id ();
518516 break ;
519517 case AST ::UseTreeRebind::NewBindType::NONE :
@@ -533,7 +531,6 @@ Early::finalize_rebind_import (const Early::ImportPair &mapping)
533531 declared_name = path.get_final_segment ().as_string ();
534532 import_id = path.get_final_segment ().get_node_id ();
535533 }
536- locus = path.get_final_segment ().get_locus ();
537534 break ;
538535 }
539536 case AST ::UseTreeRebind::NewBindType::WILDCARD :
You can’t perform that action at this time.
0 commit comments