diff options
| author | Miodrag Milanović <mmicko@gmail.com> | 2020-01-19 16:09:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-19 16:09:25 +0100 |
| commit | 4ff19c826072167417492277a22b16d767675f26 (patch) | |
| tree | e38faffa057bf7556d3ed3ae7f0f35f19f8818cf /generic/pack.cc | |
| parent | b67ba18590f4a4ec5bb3f1062a8b1495e88f14bb (diff) | |
| parent | 714769e1b83dd548967a1f6bc614b29abfc22bc1 (diff) | |
| download | nextpnr-4ff19c826072167417492277a22b16d767675f26.tar.gz nextpnr-4ff19c826072167417492277a22b16d767675f26.tar.bz2 nextpnr-4ff19c826072167417492277a22b16d767675f26.zip | |
Merge pull request #384 from YosysHQ/warning_fixes
Warning fixes
Diffstat (limited to 'generic/pack.cc')
| -rw-r--r-- | generic/pack.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/generic/pack.cc b/generic/pack.cc index e92e04c5..f1cfd0b2 100644 --- a/generic/pack.cc +++ b/generic/pack.cc @@ -112,17 +112,6 @@ static void pack_nonlut_ffs(Context *ctx) } } -static bool net_is_constant(const Context *ctx, NetInfo *net, bool &value) -{ - if (net == nullptr) - return false; - if (net->name == ctx->id("$PACKER_GND_NET") || net->name == ctx->id("$PACKER_VCC_NET")) { - value = (net->name == ctx->id("$PACKER_VCC_NET")); - return true; - } else { - return false; - } -} // Merge a net into a constant net static void set_net_constant(const Context *ctx, NetInfo *orig, NetInfo *constnet, bool constval) |
