From fadaf7053d067e3346ce2b000b700dfc918448f2 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 5 Feb 2018 12:10:55 +0100 Subject: [PATCH] Remove QPlatformPrinterSupport::createDefaultPrintDevice no one uses it Change-Id: I03d0350a44a19545d57b47d1b21d85f1a2059f4d Reviewed-by: Frederik Gladhorn --- src/printsupport/kernel/qplatformprintersupport.cpp | 5 ----- src/printsupport/kernel/qplatformprintersupport.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/printsupport/kernel/qplatformprintersupport.cpp b/src/printsupport/kernel/qplatformprintersupport.cpp index e12a292aec..a25dc6d45c 100644 --- a/src/printsupport/kernel/qplatformprintersupport.cpp +++ b/src/printsupport/kernel/qplatformprintersupport.cpp @@ -89,11 +89,6 @@ QPrintDevice QPlatformPrinterSupport::createPrintDevice(const QString &id) return QPrintDevice(); } -QPrintDevice QPlatformPrinterSupport::createDefaultPrintDevice() -{ - return createPrintDevice(defaultPrintDeviceId()); -} - QStringList QPlatformPrinterSupport::availablePrintDeviceIds() const { return QStringList(); diff --git a/src/printsupport/kernel/qplatformprintersupport.h b/src/printsupport/kernel/qplatformprintersupport.h index 6a4246adc0..413c1067c2 100644 --- a/src/printsupport/kernel/qplatformprintersupport.h +++ b/src/printsupport/kernel/qplatformprintersupport.h @@ -76,7 +76,6 @@ public: virtual QPaintEngine *createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode); virtual QPrintDevice createPrintDevice(const QString &id); - virtual QPrintDevice createDefaultPrintDevice(); virtual QStringList availablePrintDeviceIds() const; virtual QString defaultPrintDeviceId() const;