cleanup: remove unnecessary Q_UNUSED macros

Also remove the UNUSED() macro, as there were no users left.

The macro was silly anyway - there were many falso positives.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-04 22:53:05 +02:00 committed by bstoeger
parent 5960fb7340
commit 4d183637d0
5 changed files with 8 additions and 19 deletions

View file

@ -2331,9 +2331,8 @@ void QMLManager::rememberOldStatus()
setOldStatus((qPrefCloudStorage::cloud_status)qPrefCloudStorage::cloud_verification_status());
}
void QMLManager::divesChanged(const QVector<dive *> &dives, DiveField field)
void QMLManager::divesChanged(const QVector<dive *> &dives, DiveField)
{
Q_UNUSED(field)
for (struct dive *d: dives) {
report_info("dive #%d changed, cache is %s", d->number, dive_cache_is_valid(d) ? "valid" : "invalidated");
// a brute force way to deal with that would of course be to call