Remove old crash debug information.

This commit is contained in:
John Preston 2017-08-15 18:26:30 +03:00
parent 7df63db9b3
commit 6cedf20c39

View file

@ -91,19 +91,6 @@ void IndexedList::movePinned(Row *row, int deltaSign) {
}
auto history1 = row->history();
auto history2 = (*swapPinnedIndexWith)->history();
// Debug an assertion violation.
if (!history2->isPinnedDialog()) {
auto myPinnedCount = 0;
for_const (auto row, *this) {
if (!row->history()->isPinnedDialog()) {
break;
}
++myPinnedCount;
}
SignalHandlers::setCrashAnnotation("DebugInfo", QString("row index: %1, deltaSign: %2, pinnedCount: %3, myPinnedCount: %4").arg(row->pos()).arg(deltaSign).arg(App::histories().pinnedCount()).arg(myPinnedCount));
}
t_assert(history1->isPinnedDialog());
t_assert(history2->isPinnedDialog());
auto index1 = history1->getPinnedIndex();