Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit cf948e4

Browse files
committed
Remove unused method from ServiceRemoteWordPressComREST
1 parent 966b6e5 commit cf948e4

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ _None._
3434

3535
### Breaking Changes
3636

37-
_None._
37+
- Remove unused `anonymousWordPressComRestApiWithUserAgent` method from `ServiceRemoteWordPressComREST` [TBD]
3838

3939
### New Features
4040

Sources/WordPressKit/Services/ServiceRemoteWordPressComREST.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ NS_ASSUME_NONNULL_BEGIN
5252
- (NSString *)pathForEndpoint:(NSString *)endpoint
5353
withVersion:(ServiceRemoteWordPressComRESTApiVersion)apiVersion;
5454

55-
/**
56-
* @brief An anonoymous API object to use for communications where authentication is not needed.
57-
*
58-
* @param userAgent The user agent string to use on all requests
59-
*/
60-
+ (WordPressComRestApi *)anonymousWordPressComRestApiWithUserAgent:(NSString *)userAgent;
61-
6255
@end
6356

6457
NS_ASSUME_NONNULL_END

Sources/WordPressKit/Services/ServiceRemoteWordPressComREST.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
static NSString* const ServiceRemoteWordPressComRESTApiVersionString_1_3 = @"rest/v1.3";
1515
static NSString* const ServiceRemoteWordPressComRESTApiVersionString_2_0 = @"wpcom/v2";
1616

17-
@interface ServiceRemoteWordPressComREST ()
18-
@end
19-
2017
@implementation ServiceRemoteWordPressComREST
2118

2219
- (instancetype)initWithWordPressComRestApi:(WordPressComRestApi *)wordPressComRestApi {
@@ -80,11 +77,4 @@ - (NSString *)pathForEndpoint:(NSString *)resourceUrl
8077
return [NSString stringWithFormat:@"%@/%@", apiVersionString, resourceUrl];
8178
}
8279

83-
+ (WordPressComRestApi *)anonymousWordPressComRestApiWithUserAgent:(NSString *)userAgent {
84-
85-
return [[WordPressComRestApi alloc] initWithOAuthToken:nil
86-
userAgent:userAgent
87-
];
88-
}
89-
9080
@end

0 commit comments

Comments
 (0)