forked from jbagg/QtZeroConf
QZeroConfService - isValid() no longer needed
This commit is contained in:
@@ -133,11 +133,6 @@ void QZeroConfService::appendTxt(QByteArray idx, QByteArray val)
|
|||||||
data->txt[idx] = val;
|
data->txt[idx] = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QZeroConfService::isValid() const
|
|
||||||
{
|
|
||||||
return (!data->name.isEmpty());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool QZeroConfService::operator==(const QZeroConfService &rhs) const
|
bool QZeroConfService::operator==(const QZeroConfService &rhs) const
|
||||||
{
|
{
|
||||||
return this->name() == rhs.name() && (this->ip() == rhs.ip() || this->ipv6() == rhs.ipv6());
|
return this->name() == rhs.name() && (this->ip() == rhs.ip() || this->ipv6() == rhs.ipv6());
|
||||||
|
@@ -35,7 +35,6 @@ public:
|
|||||||
quint16 port() const;
|
quint16 port() const;
|
||||||
QMap <QByteArray, QByteArray> txt() const;
|
QMap <QByteArray, QByteArray> txt() const;
|
||||||
|
|
||||||
bool isValid() const;
|
|
||||||
bool operator==(const QZeroConfService &rhs) const;
|
bool operator==(const QZeroConfService &rhs) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user