Remove unused variables

This commit is contained in:
Klemens Nanni 2022-01-26 04:03:59 +03:00 committed by John Preston
parent 9f3f734b8c
commit 6decece009
4 changed files with 0 additions and 9 deletions
Telegram/SourceFiles

View file

@ -44,7 +44,6 @@ namespace ChatHelpers {
namespace {
constexpr auto kSearchRequestDelay = 400;
constexpr auto kInlineItemsMaxPerRow = 5;
constexpr auto kSearchBotUsername = "gif"_cs;
constexpr auto kMinRepaintDelay = crl::time(33);
constexpr auto kMinAfterScrollDelay = crl::time(33);

View file

@ -500,10 +500,8 @@ void paintRow(
paintItemCallback(nameleft, namewidth);
} else if (entry->isPinnedDialog(filterId) && (filterId || !entry->fixedOnTopIndex())) {
auto availableWidth = namewidth;
auto &icon = (active ? st::dialogsPinnedIconActive : (selected ? st::dialogsPinnedIconOver : st::dialogsPinnedIcon));
icon.paint(p, fullWidth - st::dialogsPadding.x() - icon.width(), texttop, fullWidth);
availableWidth -= icon.width() + st::dialogsUnreadPadding;
}
auto sendStateIcon = [&]() -> const style::icon* {
if (draft) {

View file

@ -212,11 +212,7 @@ void Invoice::draw(Painter &p, const PaintContext &context) const {
QMargins bubble(_attach ? _attach->bubbleMargins() : QMargins());
auto padding = inBubblePadding();
auto tshift = padding.top();
auto bshift = padding.bottom();
paintw -= padding.left() + padding.right();
if (isBubbleBottom() && _attach && _attach->customInfoLayout() && _attach->width() + _parent->skipBlockWidth() > paintw + bubble.left() + bubble.right()) {
bshift += bottomInfoPadding();
}
auto lineHeight = unitedLineHeight();
if (_titleHeight) {

View file

@ -49,8 +49,6 @@ enum class Type;
namespace InlineBots {
namespace Layout {
constexpr int kInlineItemsMaxPerRow = 5;
class ItemBase;
using Results = std::vector<std::unique_ptr<Result>>;