1
0
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:
Anthony Bilinski 2022-03-06 00:13:42 -08:00
parent 8ff52e500a
commit a96deb7bc0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 0 additions and 12 deletions

View File

@ -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};

View File

@ -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;