From 862366f6ec7d35078f22e849c266bffeab1bc9c2 Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Tue, 26 Jan 2021 12:46:05 +0100 Subject: Qt6: remove overridden atEnd() method Task-number: QTBUG-89880 Change-Id: I0f71a210f4807f391b4dd7a303c229bddb141b80 Reviewed-by: Sona Kurazyan Reviewed-by: Alex Blasche --- src/serialport/qserialport.cpp | 27 --------------------------- src/serialport/qserialport.h | 1 - 2 files changed, 28 deletions(-) (limited to 'src') diff --git a/src/serialport/qserialport.cpp b/src/serialport/qserialport.cpp index 7f10d404..75aded42 100644 --- a/src/serialport/qserialport.cpp +++ b/src/serialport/qserialport.cpp @@ -954,33 +954,6 @@ bool QSerialPort::clear(Directions directions) return d->clear(directions); } -/*! - \reimp - - Returns \c true if no more data is currently available for reading; otherwise - returns \c false. - - This function is most commonly used when reading data from the - serial port in a loop. For example: - - \code - // This slot is connected to QSerialPort::readyRead() - void QSerialPortClass::readyReadSlot() - { - while (!port.atEnd()) { - QByteArray data = port.read(100); - .... - } - } - \endcode - - \sa bytesAvailable(), readyRead() - */ -bool QSerialPort::atEnd() const -{ - return QIODevice::atEnd(); -} - /*! \property QSerialPort::error \brief the error status of the serial port diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index 99890bf8..cf126ddf 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -191,7 +191,6 @@ public: bool flush(); bool clear(Directions directions = AllDirections); - bool atEnd() const override; // ### Qt6: remove me SerialPortError error() const; void clearError(); -- cgit v1.2.3