diff --git a/Telegram/SourceFiles/data/data_photo.cpp b/Telegram/SourceFiles/data/data_photo.cpp index 18380065a..b485d10d3 100644 --- a/Telegram/SourceFiles/data/data_photo.cpp +++ b/Telegram/SourceFiles/data/data_photo.cpp @@ -74,9 +74,6 @@ int PhotoData::validSizeIndex(PhotoSize size) const { const auto index = PhotoSizeIndex(size); for (auto i = index; i != kPhotoSizeCount; ++i) { if (_images[i].location.valid()) { - if (i != index) { - int a = 0; AssertIsDebug(); - } return i; } } diff --git a/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp b/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp index 858bb9877..274367fca 100644 --- a/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp +++ b/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp @@ -190,11 +190,6 @@ void Gif::paint(Painter &p, const QRect &clip, const PaintContext *context) cons } } - AssertIsDebug(); - if (preview.usingThumbnail()) { - p.fillRect(QRect(r.topLeft(), QSize(20, 20)), Qt::green); - } - if (radial || _gif.isBad() || (!_gif && !loaded && !loading && !preview.usingThumbnail())) {