summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsocketnotifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qsocketnotifier.cpp')
-rw-r--r--src/corelib/kernel/qsocketnotifier.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/corelib/kernel/qsocketnotifier.cpp b/src/corelib/kernel/qsocketnotifier.cpp
index d59838ba23..5e99d1d483 100644
--- a/src/corelib/kernel/qsocketnotifier.cpp
+++ b/src/corelib/kernel/qsocketnotifier.cpp
@@ -185,40 +185,6 @@ QSocketNotifier::QSocketNotifier(int socket, Type type, QObject *parent)
}
}
-#ifdef QT3_SUPPORT
-/*!
- \obsolete
-
- Use the QSocketNotifier() constructor combined with the
- QObject::setObjectName() function instead.
-
- \oldcode
- QSocketNotifier *notifier = new QSocketNotifier(socket, type, parent, name);
- \newcode
- QSocketNotifier *notifier = new QSocketNotifier(socket, type, parent);
- notifier->setObjectName(name);
- \endcode
-*/
-
-QSocketNotifier::QSocketNotifier(int socket, Type type, QObject *parent,
- const char *name)
- : QObject(parent)
-{
- setObjectName(QString::fromAscii(name));
- if (socket < 0)
- qWarning("QSocketNotifier: Invalid socket specified");
- sockfd = socket;
- sntype = type;
- snenabled = true;
-
- Q_D(QObject);
- if (!d->threadData->eventDispatcher) {
- qWarning("QSocketNotifier: Can only be used with threads started with QThread");
- } else {
- d->threadData->eventDispatcher->registerSocketNotifier(this);
- }
-}
-#endif
/*!
Destroys this socket notifier.
*/