Merge pull request #4295 from kb-1000/instanceview-unused-code

NOISSUE Remove some unused code from InstanceView
This commit is contained in:
Petr Mrázek 2021-12-19 18:43:13 +01:00 committed by GitHub
commit 6f6fa6955a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -835,15 +835,6 @@ QModelIndex InstanceView::moveCursor(QAbstractItemView::CursorAction cursorActio
if(group_index < 0)
return current;
auto real_group = m_groups[group_index];
int beginning_row = 0;
for(auto group: m_groups)
{
if(group == real_group)
break;
beginning_row += group->numRows();
}
QPair<int, int> pos = cat->positionOf(current);
int column = pos.first;
int row = pos.second;