summaryrefslogtreecommitdiffstats
path: root/tests/auto/printsupport/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/printsupport/kernel')
-rw-r--r--tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp b/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp
index 404aa06399..70a00edb10 100644
--- a/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp
+++ b/tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp
@@ -70,7 +70,6 @@ private slots:
void testAssignment();
private:
- void macFixNameFormat(QString *printerName);
QString getDefaultPrinterFromSystem();
QStringList getPrintersFromSystem();
@@ -86,18 +85,6 @@ void tst_QPrinterInfo::initTestCase()
#else
-void tst_QPrinterInfo::macFixNameFormat(QString *printerName)
-{
-// Modify the format of the printer name to match Qt, lpstat returns
-// foo___domain_no, Qt returns foo @ domain.no
-#ifdef Q_OS_MAC
- printerName->replace(QLatin1String("___"), QLatin1String(" @ "));
- printerName->replace(QLatin1String("_"), QLatin1String("."));
-#else
- Q_UNUSED(printerName);
-#endif
-}
-
QString tst_QPrinterInfo::getDefaultPrinterFromSystem()
{
QStringList command;
@@ -113,7 +100,6 @@ QString tst_QPrinterInfo::getDefaultPrinterFromSystem()
QRegExp defaultReg("default.*: *([a-zA-Z0-9_-]+)");
defaultReg.indexIn(output);
QString printer = defaultReg.cap(1);
- macFixNameFormat(&printer);
return printer;
}
@@ -130,7 +116,6 @@ QStringList tst_QPrinterInfo::getPrintersFromSystem()
for (int c = 0; c < list.size(); ++c) {
if (reg.indexIn(list[c]) >= 0) {
QString printer = reg.cap(1);
- macFixNameFormat(&printer);
ans << printer;
}
}