Skip to content

Commit 91ee879

Browse files
authored
Remove a few functions in AbstractPosts (#25008)
* Remove unnecessary Core Data property setters The functions were originally added in commit 32477e1. The original implementation needed to update another property in the setters. But the update code no longer exists, and the override method becomes redundant, since it's the same as the default Core Data implementation. * Remove AbstractPost.setDateCreated The same function exists in the super class BasePost.
1 parent 696fef0 commit 91ee879

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Sources/WordPressData/Objective-C/AbstractPost.m

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,6 @@ - (void)save
3535
[[ContextManager sharedInstance] saveContext:self.managedObjectContext];
3636
}
3737

38-
39-
#pragma mark - Getters/Setters
40-
41-
- (void)setRemoteStatusNumber:(NSNumber *)remoteStatusNumber
42-
{
43-
NSString *key = @"remoteStatusNumber";
44-
[self willChangeValueForKey:key];
45-
[self setPrimitiveValue:remoteStatusNumber forKey:key];
46-
[self didChangeValueForKey:key];
47-
}
48-
49-
- (void)setDate_created_gmt:(NSDate *)date_created_gmt
50-
{
51-
NSString *key = @"date_created_gmt";
52-
[self willChangeValueForKey:key];
53-
[self setPrimitiveValue:date_created_gmt forKey:key];
54-
[self didChangeValueForKey:key];
55-
}
56-
57-
- (void)setDateCreated:(NSDate *)localDate
58-
{
59-
self.date_created_gmt = localDate;
60-
}
61-
6238
#pragma mark -
6339
#pragma mark Revision management
6440

0 commit comments

Comments
 (0)