From 6bd3dba1e39780e52097533f7e89f823d7e72956 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 10 Feb 2021 10:42:26 +0000 Subject: Remove the unused CellInfo::pins field No arches ever actually used this to implement a Cell->Bel pin mapping, and in practice if any did try they would inevitably hit bitrot. This field had limited use in practice as it is necessary to also support cases where one cell pin maps to more than one bel pin. Removing this old field is the first step towards developing a new API for this. Signed-off-by: gatecat --- gui/designwidget.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'gui/designwidget.cc') diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 5c3584d9..5e6098a5 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -819,18 +819,6 @@ void DesignWidget::onSelectionChanged(int num, const QItemSelection &, const QIt addProperty(cellParamsItem, QVariant::String, item.first.c_str(ctx), item.second.is_string ? item.second.as_string().c_str() : item.second.to_string().c_str()); } - - QtProperty *cellPinsItem = groupManager->addProperty("Pins"); - topItem->addSubProperty(cellPinsItem); - for (auto &item : cell->pins) { - std::string cell_port = item.first.c_str(ctx); - std::string bel_pin = item.second.c_str(ctx); - - QtProperty *pinGroupItem = addSubGroup(cellPortsItem, (cell_port + " -> " + bel_pin).c_str()); - - addProperty(pinGroupItem, QVariant::String, "Cell", cell_port.c_str(), ElementType::CELL); - addProperty(pinGroupItem, QVariant::String, "Bel", bel_pin.c_str(), ElementType::BEL); - } } } -- cgit v1.2.3