Skip to content

Commit

Permalink
Remove consts that became unused from BlogServiceRemoteREST
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Apr 7, 2024
1 parent 0ace60c commit 84df233
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions Sources/WordPressKit/Services/BlogServiceRemoteREST.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,68 +7,11 @@
@import WordPressShared;

#pragma mark - Parsing Keys
static NSString * const RemoteBlogNameKey = @"name";
static NSString * const RemoteBlogTaglineKey = @"description";
static NSString * const RemoteBlogPrivacyKey = @"blog_public";
static NSString * const RemoteBlogLanguageKey = @"lang_id";
static NSString * const RemoteBlogIconKey = @"site_icon";
static NSString * const RemoteBlogGMTOffsetKey = @"gmt_offset";
static NSString * const RemoteBlogTimezoneStringKey = @"timezone_string";

static NSString * const RemoteBlogSettingsKey = @"settings";
static NSString * const RemoteBlogDefaultCategoryKey = @"default_category";
static NSString * const RemoteBlogDefaultPostFormatKey = @"default_post_format";
static NSString * const RemoteBlogDateFormatKey = @"date_format";
static NSString * const RemoteBlogTimeFormatKey = @"time_format";
static NSString * const RemoteBlogStartOfWeekKey = @"start_of_week";
static NSString * const RemoteBlogPostsPerPageKey = @"posts_per_page";
static NSString * const RemoteBlogCommentsAllowedKey = @"default_comment_status";
static NSString * const RemoteBlogCommentsBlocklistKeys = @"blacklist_keys";
static NSString * const RemoteBlogCommentsCloseAutomaticallyKey = @"close_comments_for_old_posts";
static NSString * const RemoteBlogCommentsCloseAutomaticallyAfterDaysKey = @"close_comments_days_old";
static NSString * const RemoteBlogCommentsKnownUsersAllowlistKey = @"comment_whitelist";
static NSString * const RemoteBlogCommentsMaxLinksKey = @"comment_max_links";
static NSString * const RemoteBlogCommentsModerationKeys = @"moderation_keys";
static NSString * const RemoteBlogCommentsPagingEnabledKey = @"page_comments";
static NSString * const RemoteBlogCommentsPageSizeKey = @"comments_per_page";
static NSString * const RemoteBlogCommentsRequireModerationKey = @"comment_moderation";
static NSString * const RemoteBlogCommentsRequireNameAndEmailKey = @"require_name_email";
static NSString * const RemoteBlogCommentsRequireRegistrationKey = @"comment_registration";
static NSString * const RemoteBlogCommentsSortOrderKey = @"comment_order";
static NSString * const RemoteBlogCommentsThreadingEnabledKey = @"thread_comments";
static NSString * const RemoteBlogCommentsThreadingDepthKey = @"thread_comments_depth";
static NSString * const RemoteBlogCommentsPingbackOutboundKey = @"default_pingback_flag";
static NSString * const RemoteBlogCommentsPingbackInboundKey = @"default_ping_status";
static NSString * const RemoteBlogRelatedPostsAllowedKey = @"jetpack_relatedposts_allowed";
static NSString * const RemoteBlogRelatedPostsEnabledKey = @"jetpack_relatedposts_enabled";
static NSString * const RemoteBlogRelatedPostsShowHeadlineKey = @"jetpack_relatedposts_show_headline";
static NSString * const RemoteBlogRelatedPostsShowThumbnailsKey = @"jetpack_relatedposts_show_thumbnails";
static NSString * const RemoteBlogAmpSupportedKey = @"amp_is_supported";
static NSString * const RemoteBlogAmpEnabledKey = @"amp_is_enabled";

static NSString * const RemoteBlogSharingButtonStyle = @"sharing_button_style";
static NSString * const RemoteBlogSharingLabel = @"sharing_label";
static NSString * const RemoteBlogSharingTwitterName = @"twitter_via";
static NSString * const RemoteBlogSharingCommentLikesEnabled = @"jetpack_comment_likes_enabled";
static NSString * const RemoteBlogSharingDisabledLikes = @"disabled_likes";
static NSString * const RemoteBlogSharingDisabledReblogs = @"disabled_reblogs";

static NSString * const RemotePostTypesKey = @"post_types";
static NSString * const RemotePostTypeNameKey = @"name";
static NSString * const RemotePostTypeLabelKey = @"label";
static NSString * const RemotePostTypeQueryableKey = @"api_queryable";

#pragma mark - Keys used for Update Calls
// Note: Only god knows why these don't match the "Parsing Keys"
static NSString * const RemoteBlogNameForUpdateKey = @"blogname";
static NSString * const RemoteBlogTaglineForUpdateKey = @"blogdescription";

#pragma mark - Defaults
static NSString * const RemoteBlogDefaultPostFormat = @"standard";
static NSInteger const RemoteBlogUncategorizedCategory = 1;



@implementation BlogServiceRemoteREST

- (void)getAllAuthorsWithSuccess:(UsersHandler)success
Expand Down

0 comments on commit 84df233

Please sign in to comment.