IOS-1673 Remove PEPMessage directory constructor

IOS-1673
Dirk Zimmermann 2 years ago
parent bea5d20f14
commit a3cba982f5
  1. 32
      pEpObjCAdapter/PEPMessage.m
  2. 5
      pEpObjCAdapterFramework/PEPMessage.h

@ -17,38 +17,6 @@
@implementation PEPMessage
- (instancetype _Nonnull)initWithDictionary:(PEPDict *)dict
{
self = [super init];
if (self) {
self.messageID = [dict objectForKey:kPepID];
self.from = [dict objectForKey:kPepFrom];
self.to = [dict objectForKey:kPepTo];
self.cc = [dict objectForKey:kPepCC];
self.bcc = [dict objectForKey:kPepBCC];
self.shortMessage = [dict objectForKey:kPepShortMessage];
self.longMessage = [dict objectForKey:kPepLongMessage];
self.longMessageFormatted = [dict objectForKey:kPepLongMessageFormatted];
self.replyTo = [dict objectForKey:kPepReplyTo];
self.inReplyTo = [dict objectForKey:kPepInReplyTo];
self.references = [dict objectForKey:kPepReferences];
self.sentDate = [dict objectForKey:kPepSent];
self.receivedDate = [dict objectForKey:kPepReceived];
self.attachments = [dict objectForKey:kPepAttachments];
self.optionalFields = [dict objectForKey:kPepOptFields];
self.keywords = [dict objectForKey:kPepKeywords];
self.receivedBy = [dict objectForKey:kPepReceivedBy];
NSNumber *boolNum = [dict objectForKey:kPepOutgoing];
if (boolNum.boolValue) {
self.direction = PEP_dir_outgoing;
} else {
self.direction = PEP_dir_incoming;
}
}
return self;
}
- (instancetype _Nonnull)initWithMessage:(PEPMessage *)message
{
self = [super init];

@ -46,11 +46,6 @@ NS_ASSUME_NONNULL_BEGIN
/// A copy constructor.
- (instancetype)initWithMessage:(PEPMessage *)message;
/**
For backwards compatiblity.
*/
- (instancetype)initWithDictionary:(PEPDict *)dict;
/**
For backwards compatiblity.
*/

Loading…
Cancel
Save