remove unused QDBusUnixFileDescriptor::isSupported() method

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-12-11 20:45:56 +00:00
parent 67b8251559
commit 301796dafb
2 changed files with 0 additions and 23 deletions

View file

@ -96,10 +96,6 @@ QT_BEGIN_NAMESPACE
continue to operate, so code need not have compile-time checks for the continue to operate, so code need not have compile-time checks for the
availability of this feature. availability of this feature.
On non-Unix systems, QDBusUnixFileDescriptor will always report an
invalid state and QDBusUnixFileDescriptor::isSupported() will return
false.
\sa QDBusConnection::ConnectionCapabilities, QDBusConnection::connectionCapabilities() \sa QDBusConnection::ConnectionCapabilities, QDBusConnection::connectionCapabilities()
*/ */
@ -216,23 +212,6 @@ int QDBusUnixFileDescriptor::fileDescriptor() const
return d ? d->fd.operator int() : -1; return d ? d->fd.operator int() : -1;
} }
// qdoc documentation is generated on Unix
/*!
Returns true if Unix file descriptors are supported on this platform. In
other words, this function returns true if this is a Unix platform.
Note that QDBusUnixFileDescriptor continues to operate even if this
function returns false. The only difference is that the
QDBusUnixFileDescriptor objects will always be in the isValid() == false
state and fileDescriptor() will always return -1. The class will not
consume any operating system resources.
*/
bool QDBusUnixFileDescriptor::isSupported()
{
return true;
}
/*! /*!
Sets the file descriptor that this QDBusUnixFileDescriptor object holds Sets the file descriptor that this QDBusUnixFileDescriptor object holds
to a copy of \a fileDescriptor. The original file descriptor is not to a copy of \a fileDescriptor. The original file descriptor is not

View file

@ -68,8 +68,6 @@ public:
void giveFileDescriptor(int fileDescriptor); void giveFileDescriptor(int fileDescriptor);
int takeFileDescriptor(); int takeFileDescriptor();
static bool isSupported();
#if defined(Q_COMPILER_RVALUE_REFS) #if defined(Q_COMPILER_RVALUE_REFS)
QDBusUnixFileDescriptor(QDBusUnixFileDescriptor &&other) : d(static_cast<Data &&>(other.d)) QDBusUnixFileDescriptor(QDBusUnixFileDescriptor &&other) : d(static_cast<Data &&>(other.d))
{ } { }