Skip to content

Commit

Permalink
Avoid compiler warnings on unused method and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Mar 9, 2021
1 parent 34f62c5 commit 5a4a251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/tst_seasidefilteredmodel/seasidecache.cpp
Expand Up @@ -417,12 +417,12 @@ bool SeasideCache::isPopulated(FilterType filterType)
return instancePtr->m_populated[filterType];
}

QString SeasideCache::getPrimaryName(const QContact &contact)
QString SeasideCache::getPrimaryName(const QContact &)
{
return QString();
}

QString SeasideCache::getSecondaryName(const QContact &contact)
QString SeasideCache::getSecondaryName(const QContact &)
{
return QString();
}
Expand Down
12 changes: 0 additions & 12 deletions tools/contacts-tool/main.cpp
Expand Up @@ -57,7 +57,6 @@
#include <QContactFavorite>
#include <QContactGender>
#include <QContactGeoLocation>
#include <QContactGlobalPresence>
#include <QContactGuid>
#include <QContactHobby>
#include <QContactName>
Expand Down Expand Up @@ -319,17 +318,6 @@ QString print(const QContactGender &detail)
return QString::fromLatin1("Gender:\t") + QString::number(detail.gender());
}

QString print(const QContactGlobalPresence &detail)
{
QStringList list;
list.append(QString::number(detail.presenceState()));
list.append(detail.customMessage());
list.append(detail.nickname());
list.append(detail.timestamp().toString(Qt::ISODate));
list.append(detail.linkedDetailUris().join(QChar::fromLatin1('|')));
return QString::fromLatin1("GlobalPresence:\t") + list.join(QChar::fromLatin1(';'));
}

QString print(const QContactGuid &detail)
{
return QString::fromLatin1("GUID:\t") + detail.guid();
Expand Down

0 comments on commit 5a4a251

Please sign in to comment.