Skip to content

Commit 2c5ce45

Browse files
committed
Remove redundant invariants
1 parent 06792e6 commit 2c5ce45

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/cpp/cpp_instantiate_template.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ const symbolt &cpp_typecheckt::instantiate_template(
285285
throw 0;
286286
}
287287

288-
INVARIANT_STRUCTURED(
289-
template_scope!=nullptr, nullptr_exceptiont, "template_scope is null");
290-
291288
// produce new declaration
292289
cpp_declarationt new_decl=to_cpp_declaration(template_symbol.type);
293290

src/cpp/cpp_typecheck_resolve.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,6 @@ symbol_typet cpp_typecheck_resolvet::disambiguate_template_classes(
10411041
throw 0;
10421042
}
10431043

1044-
assert(primary_templates.size()==1);
1045-
10461044
const symbolt &primary_template_symbol=
10471045
cpp_typecheck.lookup(*primary_templates.begin());
10481046

0 commit comments

Comments
 (0)