Skip to content

Commit d7a23ee

Browse files
committed
🔥 -[GTRepository enumerateUniqueCommitsUpToOID:relativeToOID:error:]
1 parent 7d660e5 commit d7a23ee

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

ObjectiveGit/GTRepository.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -543,16 +543,6 @@ NS_ASSUME_NONNULL_BEGIN
543543
/// distinguished using the value of `success`.
544544
- (nullable GTFilterList *)filterListWithPath:(NSString *)path blob:(nullable GTBlob *)blob mode:(GTFilterSourceMode)mode options:(GTFilterListOptions)options success:(nullable BOOL *)success error:(NSError **)error;
545545

546-
/// Creates an enumerator for finding all commits in the history of `headOID`
547-
/// that do not exist in the history of `baseOID`.
548-
///
549-
/// headOID - Must not be nil.
550-
/// baseOID - Must not be nil.
551-
/// error - If not NULL, set to any error that occurs.
552-
///
553-
/// Returns the created enumerator upon success, or `nil` if an error occurred.
554-
- (nullable GTEnumerator *)enumerateUniqueCommitsUpToOID:(GTOID *)headOID relativeToOID:(GTOID *)baseOID error:(NSError **)error;
555-
556546
/// Calculates how far ahead/behind the commit represented by `headOID` is,
557547
/// relative to the commit represented by `baseOID`.
558548
///

ObjectiveGit/GTRepository.m

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -880,24 +880,6 @@ - (GTFilterList *)filterListWithPath:(NSString *)path blob:(GTBlob *)blob mode:(
880880
}
881881
}
882882

883-
- (GTEnumerator *)enumerateUniqueCommitsUpToOID:(GTOID *)headOID relativeToOID:(GTOID *)baseOID error:(NSError **)error {
884-
NSParameterAssert(headOID != nil);
885-
NSParameterAssert(baseOID != nil);
886-
887-
GTCommit *mergeBase = [self mergeBaseBetweenFirstOID:headOID secondOID:baseOID error:error];
888-
if (mergeBase == nil) return nil;
889-
890-
GTEnumerator *enumerator = [[GTEnumerator alloc] initWithRepository:self error:error];
891-
if (enumerator == nil) return nil;
892-
893-
[enumerator resetWithOptions:GTEnumeratorOptionsTimeSort];
894-
895-
if (![enumerator pushSHA:headOID.SHA error:error]) return nil;
896-
if (![enumerator hideSHA:mergeBase.OID.SHA error:error]) return nil;
897-
898-
return enumerator;
899-
}
900-
901883
- (BOOL)calculateAhead:(size_t *)ahead behind:(size_t *)behind ofOID:(GTOID *)headOID relativeToOID:(GTOID *)baseOID error:(NSError **)error {
902884
NSParameterAssert(headOID != nil);
903885
NSParameterAssert(baseOID != nil);

0 commit comments

Comments
 (0)