From 96365c1edc5282b6ec7332f79f2f698ce5f6b6be Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 12 May 2015 17:31:08 +0300 Subject: Get rid of QSPP::readData() Because we now (in the Qt 5.5 branch) use QIODevicePrivate's internal read buffer directly, there is no need to call buffer.read() in QSP::readData(). There is also no point in keeping the platform-specific implementations of QSPP::readData(), so remove them. Tested on Windows using the virtual com0com serial ports, and on Linux usig the virtual tty0tty serial ports. Change-Id: I136c6d10708cc6fc99a77c351c3945470530845d Reviewed-by: Oswald Buddenhagen Reviewed-by: Alex Trotsenko --- src/serialport/qserialport_p.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/serialport/qserialport_p.h') diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h index 7da2204..9d634b1 100644 --- a/src/serialport/qserialport_p.h +++ b/src/serialport/qserialport_p.h @@ -133,8 +133,6 @@ public: bool sendBreak(int duration); bool setBreakEnabled(bool set); - qint64 readData(char *data, qint64 maxSize); - bool waitForReadyRead(int msec); bool waitForBytesWritten(int msec); -- cgit v1.2.1