mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 15:17:07 +02:00
Remove unused variables
This commit is contained in:
parent
9f3f734b8c
commit
6decece009
4 changed files with 0 additions and 9 deletions
Telegram/SourceFiles
chat_helpers
dialogs/ui
history/view/media
inline_bots
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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>>;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue