summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialportinfo_osx.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2021-01-18 10:44:03 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2021-01-22 12:39:54 +0100
commit36c0c8d92adffbaecb3c195e1a40eff67857e19e (patch)
tree7616598895e2bf3271c65bcc3aea2909a6a51c66 /src/serialport/qserialportinfo_osx.cpp
parent6a14f2a56866c6ff636f6e0619ca5d6b479f9fea (diff)
QtSerialPort: apply API changes for Qt6
Task-number: QTBUG-89880 Change-Id: If64f461fa8b6bb207dd6f116f104bd894f04a4e4 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/serialport/qserialportinfo_osx.cpp')
-rw-r--r--src/serialport/qserialportinfo_osx.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/serialport/qserialportinfo_osx.cpp b/src/serialport/qserialportinfo_osx.cpp
index 2e46397c..8daa8a7e 100644
--- a/src/serialport/qserialportinfo_osx.cpp
+++ b/src/serialport/qserialportinfo_osx.cpp
@@ -230,39 +230,6 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts()
return serialPortInfoList;
}
-#if QT_DEPRECATED_SINCE(5, 6)
-bool QSerialPortInfo::isBusy() const
-{
- QString lockFilePath = serialPortLockFilePath(portName());
- if (lockFilePath.isEmpty())
- return false;
-
- QFile reader(lockFilePath);
- if (!reader.open(QIODevice::ReadOnly))
- return false;
-
- QByteArray pidLine = reader.readLine();
- pidLine.chop(1);
- if (pidLine.isEmpty())
- return false;
-
- qint64 pid = pidLine.toLongLong();
-
- if (pid && (::kill(pid, 0) == -1) && (errno == ESRCH))
- return false; // PID doesn't exist anymore
-
- return true;
-}
-#endif // QT_DEPRECATED_SINCE(5, 6)
-
-#if QT_DEPRECATED_SINCE(5, 2)
-bool QSerialPortInfo::isValid() const
-{
- QFile f(systemLocation());
- return f.exists();
-}
-#endif // QT_DEPRECATED_SINCE(5, 2)
-
QString QSerialPortInfoPrivate::portNameToSystemLocation(const QString &source)
{
return (source.startsWith(QLatin1Char('/'))