From f697487d6b762846c0434b535d2379b62aa354d3 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 26 Jul 2018 07:56:32 +0200 Subject: [PATCH] code cleanup --- src/gui/salemodel.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gui/salemodel.cpp b/src/gui/salemodel.cpp index 396a833..df93ab2 100644 --- a/src/gui/salemodel.cpp +++ b/src/gui/salemodel.cpp @@ -51,14 +51,9 @@ QModelIndex SaleModel::parent(const QModelIndex& index) const if (sale == rootItem.get()) return QModelIndex(); else { - /* auto iter = - std::find_if(marketplace_->getSales().begin(), marketplace_->getSales().end(), - [&sale](const auto& s) { return s.get() == sale; }); - auto pos = std::distance(marketplace_->getSales().begin(), iter); */ return createIndex(-1, 0, rootItem.get()); } } else { - // article = static_cast(index.internalPointer()); article = dynamic_cast(ent); if (!article) { @@ -90,7 +85,6 @@ QVariant SaleModel::data(const QModelIndex& index, int role) const case 1: myFont.setFamily("monospace"); return myFont; - return myFont; default: return myFont; }