Skip to content

Commit b3329e8

Browse files
committed
Remove redundant invariants
1 parent 0c686a8 commit b3329e8

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/cpp/cpp_instantiate_template.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ const symbolt &cpp_typecheckt::instantiate_template(
338338
throw 0;
339339
}
340340

341-
INVARIANT_STRUCTURED(
342-
template_scope!=nullptr, nullptr_exceptiont, "template_scope is null");
343-
344341
// produce new declaration
345342
cpp_declarationt new_decl=to_cpp_declaration(template_symbol.type);
346343

src/cpp/cpp_typecheck_resolve.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,6 @@ symbol_typet cpp_typecheck_resolvet::disambiguate_template_classes(
10741074
throw 0;
10751075
}
10761076

1077-
assert(primary_templates.size()==1);
1078-
10791077
const symbolt &primary_template_symbol=
10801078
cpp_typecheck.lookup(*primary_templates.begin());
10811079

0 commit comments

Comments
 (0)