diff --git a/ChangeLog b/ChangeLog index 9d1dc8884..a9b04a449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ invokes [self addProperties:] to modify the "properties" ivar, instead of doing it directly. This enables subclasses to only need overriding -addProperties:. + (-resetProperties): removed useless method. * OpenChange/MAPIStoreVolatileMessage.m (-addPropertiesFromRow:): removed obsolete overloading of method. diff --git a/OpenChange/MAPIStoreFSMessage.m b/OpenChange/MAPIStoreFSMessage.m index 352c0931a..6104cc72a 100644 --- a/OpenChange/MAPIStoreFSMessage.m +++ b/OpenChange/MAPIStoreFSMessage.m @@ -80,7 +80,7 @@ [sogoObject appendProperties: properties]; [sogoObject save]; - [self resetProperties]; + [properties removeAllObjects]; } - (NSDate *) creationTime diff --git a/OpenChange/MAPIStoreMailVolatileMessage.m b/OpenChange/MAPIStoreMailVolatileMessage.m index 2ae6a131f..138c960d5 100644 --- a/OpenChange/MAPIStoreMailVolatileMessage.m +++ b/OpenChange/MAPIStoreMailVolatileMessage.m @@ -812,7 +812,7 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, mapping = [[self context] mapping]; [mapping unregisterURLWithID: [self objectId]]; [self setIsNew: NO]; - [self resetProperties]; + [properties removeAllObjects]; [[self container] cleanupCaches]; return MAPISTORE_SUCCESS; diff --git a/OpenChange/MAPIStoreMessage.m b/OpenChange/MAPIStoreMessage.m index eb7b467fe..334a71a46 100644 --- a/OpenChange/MAPIStoreMessage.m +++ b/OpenChange/MAPIStoreMessage.m @@ -460,7 +460,7 @@ MAPIStoreExternalEntryId (NSString *cn, NSString *email) [[containerTables objectAtIndex: count] notifyChangesForChild: self]; [self setIsNew: NO]; - [self resetProperties]; + [properties removeAllObjects]; [container cleanupCaches]; return MAPISTORE_SUCCESS; diff --git a/OpenChange/MAPIStoreObject.h b/OpenChange/MAPIStoreObject.h index 31ace625c..d3b10cfbe 100644 --- a/OpenChange/MAPIStoreObject.h +++ b/OpenChange/MAPIStoreObject.h @@ -86,7 +86,6 @@ - (void) addProperties: (NSDictionary *) newProperties; - (NSDictionary *) properties; -- (void) resetProperties; /* ops */ - (int) getAvailableProperties: (struct SPropTagArray **) propertiesP diff --git a/OpenChange/MAPIStoreObject.m b/OpenChange/MAPIStoreObject.m index e40e54d99..f2ac7374e 100644 --- a/OpenChange/MAPIStoreObject.m +++ b/OpenChange/MAPIStoreObject.m @@ -235,11 +235,6 @@ static Class NSExceptionK, MAPIStoreFolderK; return properties; } -- (void) resetProperties -{ - [properties removeAllObjects]; -} - - (int) getProperty: (void **) data withTag: (enum MAPITAGS) propTag inMemCtx: (TALLOC_CTX *) memCtx