diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp index 618e81823..0e50281cb 100644 --- a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp +++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp @@ -37,7 +37,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include -#ifndef __MINGW32__ #include #include #include @@ -48,12 +47,9 @@ using namespace winrt::Windows::UI::Notifications; using namespace winrt::Windows::Data::Xml::Dom; using namespace winrt::Windows::Foundation; using winrt::com_ptr; -#endif // !__MINGW32__ namespace Platform { namespace Notifications { - -#ifndef __MINGW32__ namespace { constexpr auto kQuerySettingsEachMs = 1000; @@ -376,7 +372,6 @@ bool SkipFlashBounceForCustom() { } } // namespace -#endif // !__MINGW32__ void MaybePlaySoundForCustom(Fn playSound) { if (!SkipSoundForCustom()) { @@ -405,15 +400,11 @@ bool WaitForInputForCustom() { } bool Supported() { -#ifndef __MINGW32__ if (!Checked) { Checked = true; Check(); } return InitSucceeded; -#endif // !__MINGW32__ - - return false; } bool Enforced() { @@ -425,7 +416,6 @@ bool ByDefault() { } void Create(Window::Notifications::System *system) { -#ifndef __MINGW32__ if (Core::App().settings().nativeNotifications() && Supported()) { auto result = std::make_unique(system); if (result->init()) { @@ -433,11 +423,9 @@ void Create(Window::Notifications::System *system) { return; } } -#endif // !__MINGW32__ system->setManager(nullptr); } -#ifndef __MINGW32__ class Manager::Private { public: explicit Private(Manager *instance); @@ -992,7 +980,6 @@ void Manager::doMaybeFlashBounce(Fn flashBounce) { flashBounce(); } } -#endif // !__MINGW32__ } // namespace Notifications } // namespace Platform diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.h b/Telegram/SourceFiles/platform/win/notifications_manager_win.h index eba557177..6fb62e414 100644 --- a/Telegram/SourceFiles/platform/win/notifications_manager_win.h +++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.h @@ -14,8 +14,6 @@ struct ToastActivation; namespace Platform { namespace Notifications { -#ifndef __MINGW32__ - class Manager : public Window::Notifications::NativeManager { public: Manager(Window::Notifications::System *system); @@ -54,7 +52,6 @@ private: const std::unique_ptr _private; }; -#endif // !__MINGW32__ } // namespace Notifications } // namespace Platform