From e5981ed22b5876dd9fc5acbccb76a3acf5e1163d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 29 Jan 2022 02:32:00 +0400 Subject: [PATCH] Move jemalloc initialization code to cmake_helpers --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 1f3744d46..3054ed361 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -42,12 +42,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include -#ifdef Q_OS_FREEBSD -#include -#else // Q_OS_FREEBSD -#include -#endif // Q_OS_FREEBSD - #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION #include #include @@ -688,9 +682,6 @@ int psFixPrevious() { namespace Platform { void start() { - auto backgroundThread = true; - mallctl("background_thread", nullptr, nullptr, &backgroundThread, sizeof(bool)); - // Prevent any later calls into setlocale() by Qt QCoreApplicationPrivate::initLocale();