From 6cedf20c39d2ebd152cca6e7a718085c2d1f62f7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 15 Aug 2017 18:26:30 +0300 Subject: [PATCH] Remove old crash debug information. --- .../SourceFiles/dialogs/dialogs_indexed_list.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_indexed_list.cpp b/Telegram/SourceFiles/dialogs/dialogs_indexed_list.cpp index e7a8ee694..5d6b25748 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_indexed_list.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_indexed_list.cpp @@ -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();