Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Remove obsolete variable
Browse files Browse the repository at this point in the history
m_resultsRead is obsoleted by the fetch processed counts.
  • Loading branch information
matthewvogt committed Oct 2, 2013
1 parent a35ae46 commit f25b399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/seasidecache.cpp
Expand Up @@ -355,7 +355,6 @@ SeasideCache::SeasideCache()
, m_sortPropertyConf(QLatin1String("/org/nemomobile/contacts/sort_property"))
, m_groupPropertyConf(QLatin1String("/org/nemomobile/contacts/group_property"))
#endif
, m_resultsRead(0)
, m_populated(0)
, m_cacheIndex(0)
, m_queryIndex(0)
Expand Down Expand Up @@ -1310,8 +1309,6 @@ bool SeasideCache::event(QEvent *event)
m_fetchTypesChanged = false;
m_populateProgress = RefetchFavorites;
} else if (!m_changedContacts.isEmpty() && !m_fetchRequest.isActive()) {
m_resultsRead = 0;

#ifdef USING_QTPIM
QContactIdFilter filter;
#else
Expand Down Expand Up @@ -1367,7 +1364,6 @@ bool SeasideCache::event(QEvent *event)
} else if (m_refreshRequired && !m_contactIdRequest.isActive()) {
m_refreshRequired = false;

m_resultsRead = 0;
m_syncFilter = FilterFavorites;
m_contactIdRequest.setFilter(favoriteFilter());
m_contactIdRequest.setSorting(m_sortOrder);
Expand Down Expand Up @@ -1740,8 +1736,7 @@ void SeasideCache::contactsAvailable()
// An update.
QSet<QString> modifiedGroups;

for (int i = m_resultsRead; i < contacts.count(); ++i) {
QContact contact = contacts.at(i);
foreach (QContact contact, contacts) {
quint32 iid = internalId(contact);

QString oldNameGroup;
Expand Down Expand Up @@ -1791,7 +1786,7 @@ void SeasideCache::contactsAvailable()
instancePtr->contactDataChanged(item->iid);
}
}
m_resultsRead = contacts.count();

notifyNameGroupsChanged(modifiedGroups);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/seasidecache.h
Expand Up @@ -465,7 +465,6 @@ private slots:
MGConfItem m_sortPropertyConf;
MGConfItem m_groupPropertyConf;
#endif
int m_resultsRead;
int m_populated;
int m_cacheIndex;
int m_queryIndex;
Expand Down

0 comments on commit f25b399

Please sign in to comment.