QFormLayout: Remove internal, unused functions
Found by the Intel Compiler 17 Beta on Windows: qformlayout.cpp(68): error #177: function "<unnamed>::FixedColumnMatrix<T, NumColumns>::addRow [with T=QFormLayoutItem *, NumColumns=2]" was declared but never referenced Change-Id: Ib57b52598e2f452985e9fffd1458f6a3c3a609dc Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
3c93286f08
commit
d9b545152d
@ -65,12 +65,7 @@ public:
|
|||||||
T &operator()(int r, int c) { return m_storage[r * NumColumns + c]; }
|
T &operator()(int r, int c) { return m_storage[r * NumColumns + c]; }
|
||||||
|
|
||||||
int rowCount() const { return m_storage.size() / NumColumns; }
|
int rowCount() const { return m_storage.size() / NumColumns; }
|
||||||
void addRow(const T &value);
|
|
||||||
void insertRow(int r, 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.
|
// Hmmpf.. Some things are faster that way.
|
||||||
const Storage &storage() const { return m_storage; }
|
const Storage &storage() const { return m_storage; }
|
||||||
@ -81,13 +76,6 @@ private:
|
|||||||
Storage m_storage;
|
Storage m_storage;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T, int NumColumns>
|
|
||||||
void FixedColumnMatrix<T, NumColumns>::addRow(const T &value)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < NumColumns; ++i)
|
|
||||||
m_storage.append(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class T, int NumColumns>
|
template <class T, int NumColumns>
|
||||||
void FixedColumnMatrix<T, NumColumns>::insertRow(int r, const T &value)
|
void FixedColumnMatrix<T, NumColumns>::insertRow(int r, const T &value)
|
||||||
{
|
{
|
||||||
@ -96,22 +84,6 @@ void FixedColumnMatrix<T, NumColumns>::insertRow(int r, const T &value)
|
|||||||
m_storage.insert(it, NumColumns, value);
|
m_storage.insert(it, NumColumns, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T, int NumColumns>
|
|
||||||
void FixedColumnMatrix<T, NumColumns>::removeRow(int r)
|
|
||||||
{
|
|
||||||
m_storage.remove(r * NumColumns, NumColumns);
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class T, int NumColumns>
|
|
||||||
bool FixedColumnMatrix<T, NumColumns>::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 <class T, int NumColumns>
|
template <class T, int NumColumns>
|
||||||
void FixedColumnMatrix<T, NumColumns>::storageIndexToPosition(int idx, int *rowPtr, int *colPtr)
|
void FixedColumnMatrix<T, NumColumns>::storageIndexToPosition(int idx, int *rowPtr, int *colPtr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user