Browse Source

IOS-2794 Revert "Less memory in _removeInvalidHeadersFromMessage"

This reverts commit 349806bd17.
IOS-2794
Dirk Zimmermann 1 year ago
parent
commit
b222a98ea0
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      pantomime-lib/Framework/Pantomime/CWIMAPFolder.m

+ 2
- 5
pantomime-lib/Framework/Pantomime/CWIMAPFolder.m View File

@ -770,7 +770,7 @@
- (NSData *) _removeInvalidHeadersFromMessage: (NSData *) theMessage
{
NSMutableData *aMutableData;
NSMutableArray *allLines;
NSArray *allLines;
NSUInteger i, count;
// We allocate our mutable data object
@ -785,10 +785,7 @@
NSData *aLine;
// We get a line...
aLine = [allLines firstObject];
// Remove the line immediately to easy memory consumption
[allLines removeObjectAtIndex:0];
aLine = [allLines objectAtIndex: i];
// We skip dumb headers
if ([aLine hasCPrefix: "From "])


Loading…
Cancel
Save