Rid unnecessary if

This commit is contained in:
Eddie Hung 2019-12-30 18:26:35 -08:00
parent e2bbe33a88
commit 65baefecd3
1 changed files with 11 additions and 13 deletions

View File

@ -714,7 +714,6 @@ struct XAigerWriter
f.write(reinterpret_cast<const char*>(&buffer_size_be), sizeof(buffer_size_be));
f.write(buffer_str.data(), buffer_str.size());
if (holes_module) {
module->design->selection_stack.emplace_back(false);
module->design->selection().select(holes_module);
@ -725,12 +724,11 @@ struct XAigerWriter
module->design->selection_stack.pop_back();
f << "a";
std::string buffer_str = a_buffer.str();
int32_t buffer_size_be = to_big_endian(buffer_str.size());
buffer_str = a_buffer.str();
buffer_size_be = to_big_endian(buffer_str.size());
f.write(reinterpret_cast<const char*>(&buffer_size_be), sizeof(buffer_size_be));
f.write(buffer_str.data(), buffer_str.size());
}
}
f << "h";
std::string buffer_str = h_buffer.str();