Skip to content

Commit 1f4da29

Browse files
author
Daniel Kroening
committed
remove variant of type2name without namespace
1 parent b76eb4e commit 1f4da29

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/ansi-c/c_typecheck_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ void c_typecheck_baset::typecheck_compound_type(struct_union_typet &type)
766766

767767
typecheck_compound_body(to_struct_union_type(compound_symbol.type));
768768

769-
std::string typestr=type2name(compound_symbol.type);
769+
std::string typestr = type2name(compound_symbol.type, *this);
770770
compound_symbol.base_name="#anon-"+typestr;
771771
compound_symbol.name="tag-#anon#"+typestr;
772772
identifier=compound_symbol.name;

src/ansi-c/type2name.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,3 @@ std::string type2name(const typet &type, const namespacet &ns)
281281
symbol_numbert symbol_number;
282282
return type2name(type, ns, symbol_number);
283283
}
284-
285-
std::string type2name(const typet &type)
286-
{
287-
symbol_tablet symbol_table;
288-
return type2name(type, namespacet(symbol_table));
289-
}

src/ansi-c/type2name.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Author: Daniel Kroening, [email protected]
1818

1919
class namespacet;
2020

21-
std::string type2name(const typet &type);
2221
std::string type2name(const typet &type, const namespacet &ns);
2322

2423
#endif // CPROVER_ANSI_C_TYPE2NAME_H

0 commit comments

Comments
 (0)