File tree 2 files changed +2
-16
lines changed
Sources/WordPressKit/Services
2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,4 @@ typedef void (^SettingsHandler)(RemoteBlogSettings *settings);
66
66
success : (void (^)(NSDictionary *siteInfoDict))success
67
67
failure : (void (^)(NSError *error))failure ;
68
68
69
- // FIXME: Temporary public for testing. Will remove once the logic moves to Swift
70
- - (RemoteBlogSettings *)remoteBlogSettingFromJSONDictionary : (NSDictionary *)json ;
71
- - (NSDictionary *)remoteSettingsToDictionary : (RemoteBlogSettings *)settings ;
72
-
73
69
@end
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ - (void)syncBlogSettingsWithSuccess:(SettingsHandler)success
219
219
}
220
220
return ;
221
221
}
222
- RemoteBlogSettings *remoteSettings = [self remoteBlogSettingFromJSONDictionary : responseObject];
222
+ RemoteBlogSettings *remoteSettings = [[RemoteBlogSettings alloc ] initWithJsonDictionary : responseObject];
223
223
if (success) {
224
224
success (remoteSettings);
225
225
}
@@ -236,7 +236,7 @@ - (void)updateBlogSettings:(RemoteBlogSettings *)settings
236
236
{
237
237
NSParameterAssert (settings);
238
238
239
- NSDictionary *parameters = [self remoteSettingsToDictionary: settings];
239
+ NSDictionary *parameters = [settings dictionaryRepresentation ];
240
240
NSString *path = [NSString stringWithFormat: @" sites/%@ /settings?context=edit" , self .siteID];
241
241
NSString *requestUrl = [self pathForEndpoint: path withVersion: WordPressComRESTAPIVersion_1_1];
242
242
@@ -374,14 +374,4 @@ - (RemotePostType *)remotePostTypeWithDictionary:(NSDictionary *)json
374
374
return postType;
375
375
}
376
376
377
- - (RemoteBlogSettings *)remoteBlogSettingFromJSONDictionary : (NSDictionary *)json
378
- {
379
- return [[RemoteBlogSettings alloc ] initWithJsonDictionary: json];
380
- }
381
-
382
- - (NSDictionary *)remoteSettingsToDictionary : (RemoteBlogSettings *)settings
383
- {
384
- return [settings dictionaryRepresentation ];
385
- }
386
-
387
377
@end
You can’t perform that action at this time.
0 commit comments