Skip to content

Commit 609c934

Browse files
authored
Merge pull request #2414 from tautschnig/vs-want
Remove unused paramter in cpp_typecheck_resolvet
2 parents 9263e43 + fb512f0 commit 609c934

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/cpp/cpp_typecheck_resolve.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ cpp_typecheck_resolvet::cpp_typecheck_resolvet(cpp_typecheckt &_cpp_typecheck):
3737

3838
void cpp_typecheck_resolvet::convert_identifiers(
3939
const cpp_scopest::id_sett &id_set,
40-
const wantt want,
4140
const cpp_typecheck_fargst &fargs,
4241
resolve_identifierst &identifiers)
4342
{
@@ -47,7 +46,7 @@ void cpp_typecheck_resolvet::convert_identifiers(
4746
it++)
4847
{
4948
const cpp_idt &identifier=**it;
50-
exprt e=convert_identifier(identifier, want, fargs);
49+
exprt e=convert_identifier(identifier, fargs);
5150

5251
if(e.is_not_nil())
5352
{
@@ -210,7 +209,6 @@ exprt cpp_typecheck_resolvet::convert_template_parameter(
210209

211210
exprt cpp_typecheck_resolvet::convert_identifier(
212211
const cpp_idt &identifier,
213-
const wantt want,
214212
const cpp_typecheck_fargst &fargs)
215213
{
216214
if(identifier.id_class==cpp_scopet::id_classt::TEMPLATE_PARAMETER)
@@ -1516,7 +1514,7 @@ exprt cpp_typecheck_resolvet::resolve(
15161514
{
15171515
// methods and functions
15181516
convert_identifiers(
1519-
id_set, want, fargs, identifiers);
1517+
id_set, fargs, identifiers);
15201518

15211519
apply_template_args(
15221520
identifiers, template_args, fargs);
@@ -1525,7 +1523,7 @@ exprt cpp_typecheck_resolvet::resolve(
15251523
else
15261524
{
15271525
convert_identifiers(
1528-
id_set, want, fargs, identifiers);
1526+
id_set, fargs, identifiers);
15291527
}
15301528

15311529
// change types into constructors if we want a constructor

src/cpp/cpp_typecheck_resolve.h

-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class cpp_typecheck_resolvet
4949

5050
void convert_identifiers(
5151
const cpp_scopest::id_sett &id_set,
52-
const wantt want,
5352
const cpp_typecheck_fargst &fargs,
5453
resolve_identifierst &identifiers);
5554

@@ -58,7 +57,6 @@ class cpp_typecheck_resolvet
5857

5958
exprt convert_identifier(
6059
const cpp_idt &id,
61-
const wantt want,
6260
const cpp_typecheck_fargst &fargs);
6361

6462
void disambiguate_functions(

0 commit comments

Comments
 (0)