summaryrefslogtreecommitdiffstats
path: root/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp')
-rw-r--r--Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp b/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp
deleted file mode 100644
index 270f0ae8f8..0000000000
--- a/Telegram/SourceFiles/platform/linux/linux_xlib_helper.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
-This file is part of Telegram Desktop,
-the official desktop application for the Telegram messaging service.
-
-For license and copyright information please follow this link:
-https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
-*/
-#include "platform/linux/linux_xlib_helper.h"
-
-extern "C" {
-#include <X11/Xlib.h>
-}
-
-namespace Platform {
-namespace internal {
-
-class XErrorHandlerRestorer::Private {
-public:
- Private()
- : _oldErrorHandler(XSetErrorHandler(nullptr)) {
- }
-
- ~Private() {
- XSetErrorHandler(_oldErrorHandler);
- }
-
-private:
- int (*_oldErrorHandler)(Display *, XErrorEvent *);
-};
-
-XErrorHandlerRestorer::XErrorHandlerRestorer()
-: _private(std::make_unique<Private>()) {
-}
-
-XErrorHandlerRestorer::~XErrorHandlerRestorer() = default;
-
-} // namespace internal
-} // namespace Platform