From 52053a8994fa2627eff939fa081f1af3b3b8bf16 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 28 Apr 2020 14:14:51 +0200 Subject: [PATCH] Remove useless code We don't rely on a latin1 locale anymore for the test, and the other code was not doing anything. Change-Id: I08bc08d200c9e037884d8b680dfbb24c129f3d2e Reviewed-by: Thiago Macieira Reviewed-by: Alex Blasche --- tests/auto/corelib/text/qstring/tst_qstring.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp index 088225431c..fed832f160 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -685,7 +685,6 @@ typedef QVector IntList; tst_QString::tst_QString() { - QTextCodec::setCodecForLocale(QTextCodec::codecForName("ISO 8859-1")); } void tst_QString::remove_uint_uint_data() @@ -1061,13 +1060,6 @@ void tst_QString::acc_01() a = (const char*)0; QVERIFY(a.isNull()); QVERIFY(*a.toLatin1().constData() == '\0'); - { - QFile f("COMPARE.txt"); - f.open(QIODevice::ReadOnly); - QTextStream ts( &f ); - ts.setCodec(QTextCodec::codecForName("UTF-16")); - ts << "Abc"; - } } QT_WARNING_PUSH