Fix warning: variable ‘uidnext’ set but not used [-Wunused-but-set-variable]

Remove uidnext declaration and calls that change its value.
pull/201/head
Patrice Levesque 2016-02-17 11:01:15 -05:00
parent ddade629fd
commit 5b71ed319a
1 changed files with 2 additions and 7 deletions

View File

@ -2245,18 +2245,13 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
NSDictionary *d;
id fetchResults;
int uidnext, highestmodseq, i;
int highestmodseq, i;
allTokens = [NSMutableArray array];
if ([theSyncToken isEqualToString: @"-1"])
{
uidnext = highestmodseq = 0;
}
else
if (![theSyncToken isEqualToString: @"-1"])
{
a = [theSyncToken componentsSeparatedByString: @"-"];
uidnext = [[a objectAtIndex: 0] intValue];
highestmodseq = [[a objectAtIndex: 1] intValue];
}