aboutsummaryrefslogtreecommitdiffstats
path: root/gui/treemodel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gui/treemodel.cc')
-rw-r--r--gui/treemodel.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/gui/treemodel.cc b/gui/treemodel.cc
index c3accd9a..e3d9b4ae 100644
--- a/gui/treemodel.cc
+++ b/gui/treemodel.cc
@@ -150,21 +150,6 @@ LazyTreeItem *ContextTreeModel::nodeFromIndex(const QModelIndex &idx) const
return root_.get();
}
-static int getElementIndex(ElementType type)
-{
- if (type == ElementType::BEL)
- return 0;
- if (type == ElementType::WIRE)
- return 1;
- if (type == ElementType::PIP)
- return 2;
- if (type == ElementType::NET)
- return 3;
- if (type == ElementType::CELL)
- return 4;
- return -1;
-}
-
Qt::ItemFlags ContextTreeModel::flags(const QModelIndex &index) const
{
LazyTreeItem *node = nodeFromIndex(index);