Remove unused code

This commit is contained in:
Kovid Goyal 2022-07-14 08:23:45 +05:30
parent 8e5666b306
commit 9a866f197b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,7 +11,7 @@ import threading
from contextlib import contextmanager, suppress
from functools import lru_cache
from qt.core import (
QT_VERSION, QApplication, QBuffer, QByteArray, QColor, QDateTime,
QApplication, QBuffer, QByteArray, QColor, QDateTime,
QDesktopServices, QDialog, QDialogButtonBox, QEvent, QFile, QFileDialog,
QFileIconProvider, QFileInfo, QFont, QFontDatabase, QFontInfo, QFontMetrics,
QGuiApplication, QIcon, QIODevice, QLocale, QNetworkProxyFactory, QObject,
@ -1068,9 +1068,6 @@ class Application(QApplication):
# not working in GNOME though I cannot reproduce. So force use of
# XWayland.
os.environ['QT_QPA_PLATFORM'] = 'xcb'
if isfrozen and QT_VERSION <= 0x050700 and 'wayland' in os.environ.get('QT_QPA_PLATFORM', ''):
os.environ['QT_QPA_PLATFORM'] = 'xcb'
if override_program_name:
args = [override_program_name] + args[1:]
if headless: