Skip to content

Commit

Permalink
[Cleanup] Remove method +[GTLRService ticketClass]
Browse files Browse the repository at this point in the history
`+[GTLRService ticketClass] is not part of the public API, and there
is only one `GTLRServiceTicket` class, so there's no need for
this factory method.

This PR removes it.
  • Loading branch information
bhamiltoncx authored and thomasvl committed Jan 22, 2024
1 parent b49a562 commit a4916f2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sources/Core/GTLRService.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@ @implementation GTLRService {
uploadProgressBlock = _uploadProgressBlock,
userAgentAddition = _userAgentAddition;

+ (Class)ticketClass {
return [GTLRServiceTicket class];
}

- (instancetype)init {
self = [super init];
if (self) {
Expand Down Expand Up @@ -502,8 +498,8 @@ - (GTLRServiceTicket *)fetchObjectWithURL:(NSURL *)targetURL

// We need to create a ticket unless one was created earlier (like during authentication.)
if (!ticket) {
ticket = [[[[self class] ticketClass] alloc] initWithService:self
executionParameters:executionParams];
ticket = [[GTLRServiceTicket alloc] initWithService:self
executionParameters:executionParams];
[ticket notifyStarting:YES];
}

Expand Down

0 comments on commit a4916f2

Please sign in to comment.