diff --git a/src/widgets/kernel/qformlayout.cpp b/src/widgets/kernel/qformlayout.cpp index 9b346a2c50..d02cb7d6a9 100644 --- a/src/widgets/kernel/qformlayout.cpp +++ b/src/widgets/kernel/qformlayout.cpp @@ -65,12 +65,7 @@ public: T &operator()(int r, int c) { return m_storage[r * NumColumns + c]; } int rowCount() const { return m_storage.size() / NumColumns; } - void addRow(const T &value); void insertRow(int r, const T &value); - void removeRow(int r); - - bool find(const T &value, int *rowPtr, int *colPtr) const ; - int count(const T &value) const { return m_storage.count(value); } // Hmmpf.. Some things are faster that way. const Storage &storage() const { return m_storage; } @@ -81,13 +76,6 @@ private: Storage m_storage; }; -template -void FixedColumnMatrix::addRow(const T &value) -{ - for (int i = 0; i < NumColumns; ++i) - m_storage.append(value); -} - template void FixedColumnMatrix::insertRow(int r, const T &value) { @@ -96,22 +84,6 @@ void FixedColumnMatrix::insertRow(int r, const T &value) m_storage.insert(it, NumColumns, value); } -template -void FixedColumnMatrix::removeRow(int r) -{ - m_storage.remove(r * NumColumns, NumColumns); -} - -template -bool FixedColumnMatrix::find(const T &value, int *rowPtr, int *colPtr) const -{ - const int idx = m_storage.indexOf(value); - if (idx == -1) - return false; - storageIndexToPosition(idx, rowPtr, colPtr); - return true; -} - template void FixedColumnMatrix::storageIndexToPosition(int idx, int *rowPtr, int *colPtr) {