aboutsummaryrefslogtreecommitdiff
path: root/src/demoserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/demoserver.cpp')
-rw-r--r--src/demoserver.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp
index f087dbd..228824e 100644
--- a/src/demoserver.cpp
+++ b/src/demoserver.cpp
@@ -306,9 +306,6 @@ void DemoServer::load_demo(QString filename)
p_path = filename;
// Process the demo file
QTextStream demo_stream(&demo_file);
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- demo_stream.setCodec("UTF-8");
-#endif
QString line = demo_stream.readLine();
while (!line.isNull())
{
@@ -356,9 +353,6 @@ void DemoServer::load_demo(QString filename)
if (demo_file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate))
{
QTextStream out(&demo_file);
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- out.setCodec("UTF-8");
-#endif
out << p_demo_data.dequeue();
for (const QString &line : std::as_const(p_demo_data))
{