summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintersupport_qpa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/printsupport/kernel/qplatformprintersupport_qpa.cpp')
-rw-r--r--src/printsupport/kernel/qplatformprintersupport_qpa.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/printsupport/kernel/qplatformprintersupport_qpa.cpp b/src/printsupport/kernel/qplatformprintersupport_qpa.cpp
index 9c0c3f131c..2680e28f0c 100644
--- a/src/printsupport/kernel/qplatformprintersupport_qpa.cpp
+++ b/src/printsupport/kernel/qplatformprintersupport_qpa.cpp
@@ -116,22 +116,12 @@ bool QPlatformPrinterSupport::printerInfoIsDefault(const QPrinterInfo &p)
int QPlatformPrinterSupport::printerInfoCupsPrinterIndex(const QPrinterInfo &p)
{
-#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)
return p.isNull() ? -1 : p.d_func()->cupsPrinterIndex;
-#else
- Q_UNUSED(p)
- return -1;
-#endif
}
void QPlatformPrinterSupport::setPrinterInfoCupsPrinterIndex(QPrinterInfo *p, int index)
{
-#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)
p->d_func()->cupsPrinterIndex = index;
-#else
- Q_UNUSED(p)
- Q_UNUSED(index)
-#endif
}
/*