mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(settings): Remove unused Settings::getFriendAddress
This commit is contained in:
parent
8ff52e500a
commit
a96deb7bc0
|
@ -1909,17 +1909,6 @@ void Settings::setCamVideoFPS(float newValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Settings::getFriendAddress(const QString& publicKey) const
|
|
||||||
{
|
|
||||||
QMutexLocker locker{&bigLock};
|
|
||||||
QByteArray key = ToxPk(publicKey).getByteArray();
|
|
||||||
auto it = friendLst.find(key);
|
|
||||||
if (it != friendLst.end())
|
|
||||||
return it->addr;
|
|
||||||
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Settings::updateFriendAddress(const QString& newAddr)
|
void Settings::updateFriendAddress(const QString& newAddr)
|
||||||
{
|
{
|
||||||
QMutexLocker locker{&bigLock};
|
QMutexLocker locker{&bigLock};
|
||||||
|
|
|
@ -488,7 +488,6 @@ public:
|
||||||
QByteArray getDialogSettingsGeometry() const;
|
QByteArray getDialogSettingsGeometry() const;
|
||||||
void setDialogSettingsGeometry(const QByteArray& value);
|
void setDialogSettingsGeometry(const QByteArray& value);
|
||||||
|
|
||||||
QString getFriendAddress(const QString& publicKey) const;
|
|
||||||
void updateFriendAddress(const QString& newAddr);
|
void updateFriendAddress(const QString& newAddr);
|
||||||
|
|
||||||
QString getFriendAlias(const ToxPk& id) const override;
|
QString getFriendAlias(const ToxPk& id) const override;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user