summaryrefslogtreecommitdiff
path: root/noncore/net/mailit/maillist.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/mailit/maillist.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mailit/maillist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/mailit/maillist.cpp b/noncore/net/mailit/maillist.cpp
index b5325a9..8c34295 100644
--- a/noncore/net/mailit/maillist.cpp
+++ b/noncore/net/mailit/maillist.cpp
@@ -65,25 +65,25 @@ void MailList::sizeInsert(int serverId, uint size)
newEntry->size = size;
for (tempPtr = sortedList.first(); tempPtr != NULL; tempPtr = sortedList.next() ) {
if (newEntry->size < tempPtr->size) {
x = sortedList.at();
sortedList.insert(x, newEntry);
return;
}
}
sortedList.append(newEntry);
}
-void MailList::moveFront(int serverId, uint size)
+void MailList::moveFront(int serverId, uint/* size*/)
{
dList *currentPtr;
uint tempPos;
QString temp;
tempPos = currentPos;
if ( tempPos >= sortedList.count() )
return;
currentPtr = sortedList.at(tempPos);
while ( ((tempPos+1) < sortedList.count()) && ( currentPtr->serverId != serverId) ) {
tempPos++;
currentPtr = sortedList.at(tempPos);
@@ -91,41 +91,41 @@ void MailList::moveFront(int serverId, uint size)
if ( (currentPtr != NULL) && (currentPtr->serverId == serverId) ) {
temp.setNum(currentPtr->serverId);
qWarning("moved to front, message: " + temp);
dList *itemPtr = sortedList.take(tempPos);
sortedList.insert(currentPos, itemPtr);
}
}
//only works if mail is not already in download
-bool MailList::remove(int serverId, uint size)
+bool MailList::remove(int serverId, uint /*size*/)
{
dList *currentPtr;
uint tempPos;
QString temp;
tempPos = currentPos;
if ( tempPos >=sortedList.count() )
return FALSE;
currentPtr = sortedList.at(tempPos);
while ( ((tempPos + 1) < sortedList.count()) && ( currentPtr->serverId != serverId) ) {
tempPos++;
currentPtr = sortedList.at(tempPos);
}
if ( (currentPtr != NULL) && (currentPtr->serverId == serverId) ) {
temp.setNum(currentPtr->serverId);
qWarning("deleted message: " + temp);
sortedList.remove(tempPos);
return TRUE;
}
return FALSE;
}
-void MailList::insert(int pos, int serverId, uint size)
+void MailList::insert(int /*pos*/, int /*serverId*/, uint/* size*/)
{
// sortedList.insert(pos, mPtr);
}