diff options
| author | gingerBill <bill@gingerbill.org> | 2022-03-18 22:18:12 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-03-18 22:18:12 +0000 |
| commit | a68f0b2d72a3883879da124321868afcdac3b9d6 (patch) | |
| tree | 5db38b45f168926af8b9086ce24dbfb480666481 /src/check_type.cpp | |
| parent | df233f72a9d1bddb801bdaf150537477d4c23962 (diff) | |
Improve procedure group selection based on the minimum number of arguments
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index ecb2c26ea..3c7f33a46 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1960,20 +1960,6 @@ bool check_procedure_type(CheckerContext *ctx, Type *type, Ast *proc_type_node, if (params) param_count = params ->Tuple.variables.count; if (results) result_count = results->Tuple.variables.count; - if (param_count > 0) { - for_array(i, params->Tuple.variables) { - Entity *param = params->Tuple.variables[i]; - if (param->kind == Entity_Variable) { - ParameterValue pv = param->Variable.param_value; - if (pv.kind == ParameterValue_Constant && - pv.value.kind == ExactValue_Procedure) { - type->Proc.has_proc_default_values = true; - break; - } - } - } - } - if (result_count > 0) { Entity *first = results->Tuple.variables[0]; type->Proc.has_named_results = first->token.string != ""; |