Version 4.14.7: Fix build with GCC.

This commit is contained in:
John Preston 2024-01-18 14:41:28 +04:00
parent 37478d951a
commit d55dd7dffd
5 changed files with 1 additions and 15 deletions

View file

@ -59,7 +59,6 @@ void CreateRadiobuttonLock(
const auto &icon = st::messagePrivacyLock;
const auto size = st::defaultRadio.diameter;
const auto image = icon.instance(st::checkboxFg->c);
const auto dimensions = image.size();
p.drawImage(QRectF(
(size - icon.width()) / 2.,
(size - icon.height()) / 2.,

View file

@ -82,7 +82,6 @@ public:
}
[[nodiscard]] static LastseenStatus FromLegacy(int32 value) {
auto result = LastseenStatus();
if (value == -2) {
return LastseenStatus::Recently();
} else if (value == -3) {

View file

@ -99,7 +99,6 @@ TextWithEntities PremiumRequiredBox::subtitle() {
}
ClickHandlerPtr PremiumRequiredBox::createViewLink() {
const auto itemId = _parent->data()->fullId();
return std::make_shared<LambdaClickHandler>([=](ClickContext context) {
const auto my = context.other.value<ClickHandlerContext>();
if (const auto controller = my.sessionWindow.get()) {
@ -112,8 +111,6 @@ void PremiumRequiredBox::draw(
Painter &p,
const PaintContext &context,
const QRect &geometry) {
const auto padding = (geometry.width() - st::premiumRequiredCircle) / 2;
const auto size = geometry.width() - 2 * padding;
p.setBrush(context.st->msgServiceBg()); // ?
p.setPen(Qt::NoPen);
p.drawEllipse(geometry);

View file

@ -187,7 +187,6 @@ void ShowOrPremiumBox(
box.get(),
Premium::ButtonGradientStops());
const auto &st = st::premiumPreviewBox.button;
premium->resize(st::showOrShowButton.width, st::showOrShowButton.height);
const auto label = CreateChild<FlatLabel>(
@ -220,4 +219,4 @@ void ShowOrPremiumBox(
premium->setClickedCallback(std::move(toPremium));
}
} // namespace Ui
} // namespace Ui

View file

@ -520,8 +520,6 @@ WhenAction::WhenAction(
std::move(
content
) | rpl::start_with_next([=](WhoReadContent &&content) {
const auto changed = (_content.participants != content.participants)
|| (_content.state != content.state);
_content = content;
refreshText();
refreshDimensions();
@ -630,12 +628,6 @@ void WhenAction::paint(Painter &p) {
}
void WhenAction::refreshText() {
const auto usersCount = int(_content.participants.size());
const auto onlySeenCount = ranges::count(
_content.participants,
QString(),
&WhoReadParticipant::customEntityData);
const auto count = std::max(_content.fullReactionsCount, usersCount);
_text.setMarkedText(
st::whenReadStyle,
{ ((_content.state == WhoReadState::Unknown)