Skip to content

Commit 2b09c0b

Browse files
author
Owen Jones
committed
Remove unused variable and braces
1 parent 5ecb15e commit 2b09c0b

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

src/java_bytecode/java_object_factory.cpp

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -250,20 +250,18 @@ void java_object_factoryt::gen_nondet_init(
250250
{
251251
exprt allocated=
252252
allocate_object(expr, subtype, loc, create_dynamic_objects);
253-
{
254-
exprt init_expr;
255-
if(allocated.id()==ID_address_of)
256-
init_expr=allocated.op0();
257-
else
258-
init_expr=dereference_exprt(allocated, allocated.type().subtype());
259-
gen_nondet_init(
260-
init_expr,
261-
false,
262-
"",
263-
loc,
264-
false,
265-
create_dynamic_objects);
266-
}
253+
exprt init_expr;
254+
if(allocated.id()==ID_address_of)
255+
init_expr=allocated.op0();
256+
else
257+
init_expr=dereference_exprt(allocated, allocated.type().subtype());
258+
gen_nondet_init(
259+
init_expr,
260+
false,
261+
"",
262+
loc,
263+
false,
264+
create_dynamic_objects);
267265
}
268266

269267
if(!assume_non_null)
@@ -592,7 +590,6 @@ exprt object_factory(
592590

593591
exprt object=aux_symbol.symbol_expr();
594592

595-
const namespacet ns(symbol_table);
596593
gen_nondet_init(
597594
object,
598595
init_code,

0 commit comments

Comments
 (0)