IOS-2794 Revert "Less memory in _removeInvalidHeadersFromMessage"

This reverts commit 349806bd17.
IOS-2794
Dirk Zimmermann 2 years ago
parent 9fe5f23be3
commit b222a98ea0

@ -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