mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 06:44:46 +01:00
Delete Function::ParamInfo::GetNameId (#4434)
No longer used as of #4422 . Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -113,14 +113,6 @@ auto Function::GetParamFromParamRefId(const File& sem_ir, InstId param_ref_id)
|
||||
return {param_ref_id, ref.As<Param>(), bind_name};
|
||||
}
|
||||
|
||||
auto Function::ParamInfo::GetNameId(const File& sem_ir) -> NameId {
|
||||
if (bind_name) {
|
||||
return sem_ir.entity_names().Get(bind_name->entity_name_id).name_id;
|
||||
} else {
|
||||
return NameId::Invalid;
|
||||
}
|
||||
}
|
||||
|
||||
auto Function::GetDeclaredReturnType(const File& file,
|
||||
SpecificId specific_id) const -> TypeId {
|
||||
if (!return_storage_id.is_valid()) {
|
||||
|
||||
Reference in New Issue
Block a user