From cc16de7b9aee1f5b72d565af585735f87cf58e65 Mon Sep 17 00:00:00 2001 From: Jonathan Bagg Date: Mon, 6 Nov 2017 20:55:55 -0500 Subject: [PATCH] QZeroConfService - isValid() no longer needed --- qzeroconfservice.cpp | 7 +------ qzeroconfservice.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/qzeroconfservice.cpp b/qzeroconfservice.cpp index fb6727f..4aa5eec 100644 --- a/qzeroconfservice.cpp +++ b/qzeroconfservice.cpp @@ -133,11 +133,6 @@ void QZeroConfService::appendTxt(QByteArray idx, QByteArray val) data->txt[idx] = val; } -bool QZeroConfService::isValid() const -{ - return (!data->name.isEmpty()); -} - bool QZeroConfService::operator==(const QZeroConfService &rhs) const { return this->name() == rhs.name() && (this->ip() == rhs.ip() || this->ipv6() == rhs.ipv6()); @@ -148,4 +143,4 @@ QDebug operator<<(QDebug debug, const QZeroConfService &service) QDebugStateSaver saver(debug); debug.nospace() << "Zeroconf Service: " + service.name() + " @ " + service.host() + " ("+ service.ip().toString() + ":" + QString::number( service.port()) + ")"; return debug.maybeSpace(); -} \ No newline at end of file +} diff --git a/qzeroconfservice.h b/qzeroconfservice.h index 04fe906..8862f3c 100644 --- a/qzeroconfservice.h +++ b/qzeroconfservice.h @@ -35,7 +35,6 @@ public: quint16 port() const; QMap txt() const; - bool isValid() const; bool operator==(const QZeroConfService &rhs) const; private: