diff --git a/sources/TerminalStrip/ui/terminalstripmodel.cpp b/sources/TerminalStrip/ui/terminalstripmodel.cpp index c5d48d352..e0035a487 100644 --- a/sources/TerminalStrip/ui/terminalstripmodel.cpp +++ b/sources/TerminalStrip/ui/terminalstripmodel.cpp @@ -327,40 +327,6 @@ QVector> TerminalStripModel::modifiedR return returned_vector; } -/** - * @brief TerminalStripModel::levelCellCount - * Check for each index of @a index_list if the cell represented by the index - * is a level cell (level 0 to level 3) and if the corresponding real terminal is in the same level - * - * The returned vector contain how many index has matched - * the vector have 4 int, - * the first int is the number of matched level 0 - * the second int is the number of matched level 1 - * the third int is the number of matched level 2 - * the fourth int is the number of matched level 4 - * @param index_list - * @return - */ -QVector TerminalStripModel::levelCellCount(const QModelIndexList &index_list) const -{ - QVector vector_(4,0); - - for (const auto &index : index_list) - { - if(index.isValid()) - { - const auto rtd_ = realDataAtIndex(index.row()); - const auto level_ = rtd_.level_; - const auto index_column = index.column(); - if (level_ + 2 == index_column) { - vector_.replace(level_, vector_.at(level_)+1); - } - } - } - - return vector_; -} - /** * @brief TerminalStripModel::terminalsForIndex * @param index_list diff --git a/sources/TerminalStrip/ui/terminalstripmodel.h b/sources/TerminalStrip/ui/terminalstripmodel.h index 2b2804909..78e356739 100644 --- a/sources/TerminalStrip/ui/terminalstripmodel.h +++ b/sources/TerminalStrip/ui/terminalstripmodel.h @@ -64,7 +64,6 @@ class TerminalStripModel : public QAbstractTableModel virtual Qt::ItemFlags flags (const QModelIndex &index) const override; QVector> modifiedRealTerminalData() const; - QVector levelCellCount(const QModelIndexList &index_list) const; QVector physicalTerminalDataForIndex(QModelIndexList index_list) const; QVector realTerminalDataForIndex(QModelIndexList index_list) const; RealTerminalData realTerminalDataForIndex(const QModelIndex &index) const;