diff --git a/Telegram/SourceFiles/boxes/ringtones_box.cpp b/Telegram/SourceFiles/boxes/ringtones_box.cpp index 6155152ee..a97f8364f 100644 --- a/Telegram/SourceFiles/boxes/ringtones_box.cpp +++ b/Telegram/SourceFiles/boxes/ringtones_box.cpp @@ -50,7 +50,6 @@ class AudioCreator final { public: AudioCreator(); AudioCreator(AudioCreator &&other); - AudioCreator &operator=(AudioCreator &&other); ~AudioCreator(); private: @@ -77,12 +76,6 @@ AudioCreator::AudioCreator(AudioCreator &&other) , _attached(base::take(other._attached)) { } -AudioCreator &AudioCreator::operator=(AudioCreator &&other) { - _lifetime = base::take(other._lifetime); - _attached = base::take(other._attached); - return *this; -} - AudioCreator::~AudioCreator() { if (_attached) { Media::Audio::ScheduleDetachIfNotUsedSafe(); diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index 7410b9b6b..06df4c3a2 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -2288,7 +2288,6 @@ void StickersListWidget::paintSticker( p.drawPixmapLeft(ppos, width(), frame); } else { const auto image = media->getStickerSmall(); - const auto ratio = style::DevicePixelRatio(); const auto useSavedFrame = !sticker.savedFrame.isNull() && (sticker.savedFrameFor == _singleSize); const auto pixmap = useSavedFrame diff --git a/Telegram/SourceFiles/data/notify/data_peer_notify_settings.cpp b/Telegram/SourceFiles/data/notify/data_peer_notify_settings.cpp index ac763a300..66841e7d8 100644 --- a/Telegram/SourceFiles/data/notify/data_peer_notify_settings.cpp +++ b/Telegram/SourceFiles/data/notify/data_peer_notify_settings.cpp @@ -106,9 +106,6 @@ bool NotifyPeerSettingsValue::change( std::optional silentPosts, std::optional sound) { const auto now = base::unixtime::now(); - const auto notMuted = muteForSeconds - ? !(*muteForSeconds) - : (!_mute || *_mute <= now); const auto newMute = muteForSeconds ? base::make_optional((*muteForSeconds > 0) ? (now + *muteForSeconds) diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp index 6722f35d9..0d14fdadd 100644 --- a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp +++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp @@ -181,56 +181,6 @@ enum AVPixelFormat GetFormatImplementation( return AV_PIX_FMT_NONE; } -template -[[nodiscard]] HwAccelDescriptor HwAccelByFormat() { - return { - .getFormat = GetFormatImplementation, - .format = Format, - }; -} - -[[nodiscard]] HwAccelDescriptor ResolveHwAccel( - not_null decoder, - AVHWDeviceType type) { - Expects(type != AV_HWDEVICE_TYPE_NONE); - - const auto format = [&] { - for (auto i = 0;; i++) { - const auto config = avcodec_get_hw_config(decoder, i); - if (!config) { - break; - } else if (config->device_type == type - && (config->methods - & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX)) { - return config->pix_fmt; - } - } - return AV_PIX_FMT_NONE; - }(); - - switch (format) { -#ifdef Q_OS_WIN - case AV_PIX_FMT_D3D11: - return HwAccelByFormat(); - case AV_PIX_FMT_DXVA2_VLD: - return HwAccelByFormat(); - case AV_PIX_FMT_D3D11VA_VLD: - return HwAccelByFormat(); -#elif defined Q_OS_MAC // Q_OS_WIN - case AV_PIX_FMT_VIDEOTOOLBOX: - return HwAccelByFormat(); -#else // Q_OS_WIN || Q_OS_MAC - case AV_PIX_FMT_VAAPI: - return HwAccelByFormat(); - case AV_PIX_FMT_VDPAU: - return HwAccelByFormat(); -#endif // Q_OS_WIN || Q_OS_MAC - case AV_PIX_FMT_CUDA: - return HwAccelByFormat(); - } - return {}; -} - } // namespace IOPointer MakeIOPointer( diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 41c279ab7..8b74a4e7f 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -483,9 +483,6 @@ HistoryWidget::HistoryWidget( session().attachWebView().requestBots(); session().attachWebView().attachBotsUpdates( ) | rpl::start_with_next([=] { - const auto list = [=] { - return session().attachWebView().attachBots(); - }; if (session().attachWebView().attachBots().empty()) { _attachBotsMenu = nullptr; return; diff --git a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp index e09b167c9..646c52f70 100644 --- a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp +++ b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp @@ -568,7 +568,6 @@ void AttachWebView::requestSimple(const WebViewButton &button) { }); }).fail([=](const MTP::Error &error) { _requestId = 0; - int a = error.code(); }).send(); } diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 597271ee2..f253d27d3 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -177,7 +177,6 @@ private: void addHidePromotion(); void addTogglePin(); - void addToggleMute(); void addToggleMuteSubmenu(bool addSeparator); void addSupportInfo(); void addInfo(); @@ -374,13 +373,6 @@ void Filler::addTogglePin() { SetActionText(pinAction, std::move(actionText)); } -void Filler::addToggleMute() { - if (_peer->isSelf()) { - return; - } - PeerMenuAddMuteAction(_controller, _peer, _addAction); -} - void Filler::addToggleMuteSubmenu(bool addSeparator) { if (_peer->isSelf()) { return; diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 365f19aa5..9a6e515fb 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 365f19aa577b480e424651a67f90f12d56379e11 +Subproject commit 9a6e515fbb1e9c53266456447b8f301fe200ad44