Merge pull request #2866 from rswarbrick/found-init

Delete unused found_init variable
This commit is contained in:
whitequark 2021-07-14 12:00:30 +00:00 committed by GitHub
commit 9008b87c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -28,12 +28,9 @@ PRIVATE_NAMESPACE_BEGIN
void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc) void proc_init(RTLIL::Module *mod, SigMap &sigmap, RTLIL::Process *proc)
{ {
bool found_init = false;
for (auto &sync : proc->syncs) for (auto &sync : proc->syncs)
if (sync->type == RTLIL::SyncType::STi) if (sync->type == RTLIL::SyncType::STi)
{ {
found_init = true;
log("Found init rule in `%s.%s'.\n", mod->name.c_str(), proc->name.c_str()); log("Found init rule in `%s.%s'.\n", mod->name.c_str(), proc->name.c_str());
for (auto &action : sync->actions) for (auto &action : sync->actions)