aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-01-28 14:59:13 +0000
committerD. Shah <dave@ds0.me>2021-01-28 14:59:13 +0000
commit6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9 (patch)
tree83bcc4a10a5da7d3b2ebd4c2660b931a45d293d5 /ice40
parent0d9790421699a22fc6a5962b41910c3b7d089353 (diff)
downloadnextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.tar.gz
nextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.tar.bz2
nextpnr-6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9.zip
cleanup: Remove dead/unused code
Note that some '#if 0' code that might still be useful for debugging in the future has been retained. Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 38e141b6..e450e682 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -409,14 +409,6 @@ std::vector<std::pair<IdString, std::string>> Arch::getWireAttrs(WireId wire) co
ret.push_back(std::make_pair(id("GRID_Y"), stringf("%d", wi.y)));
ret.push_back(std::make_pair(id("GRID_Z"), stringf("%d", wi.z)));
-#if 0
- for (int i = 0; i < wi.num_segments; i++) {
- auto &si = wi.segments[i];
- ret.push_back(std::make_pair(id(stringf("segment[%d]", i)),
- stringf("X%d/Y%d/%s", si.x, si.y, chip_info->tile_wire_names[si.index].get())));
- }
-#endif
-
return ret;
}
@@ -830,28 +822,12 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
for (int i = 0; i < n; i++)
gfxTileWire(ret, p[i].x, p[i].y, chip_info->width, chip_info->height, GfxTileWireId(p[i].index), style);
-
-#if 0
- if (ret.empty()) {
- WireId wire;
- wire.index = decal.index;
- log_warning("No gfx decal for wire %s (%d).\n", getWireName(wire).c_str(getCtx()), decal.index);
- }
-#endif
}
if (decal.type == DecalId::TYPE_PIP) {
const PipInfoPOD &p = chip_info->pip_data[decal.index];
GraphicElement::style_t style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_HIDDEN;
gfxTilePip(ret, p.x, p.y, GfxTileWireId(p.src_seg), GfxTileWireId(p.dst_seg), style);
-
-#if 0
- if (ret.empty()) {
- PipId pip;
- pip.index = decal.index;
- log_warning("No gfx decal for pip %s (%d).\n", getPipName(pip).c_str(getCtx()), decal.index);
- }
-#endif
}
if (decal.type == DecalId::TYPE_BEL) {
@@ -920,14 +896,6 @@ std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decal) const
el.y2 = chip_info->bel_data[bel.index].y + main_swbox_y2 + 0.05;
ret.push_back(el);
}
-
-#if 0
- if (ret.empty()) {
- BelId bel;
- bel.index = decal.index;
- log_warning("No gfx decal for bel %s (%d).\n", getBelName(bel).c_str(getCtx()), decal.index);
- }
-#endif
}
return ret;