QZeroConfService - isValid() no longer needed

This commit is contained in:
Jonathan Bagg committed 2017-11-06 20:55:55 -05:00
1 parent 87fd67c719
commit cc16de7b9a
2 files changed
+1 -7

No files matched your search

+1 -6
View File
@@ -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();
}
}