Skip to content

Commit d0bcc78

Browse files
committed
Removed convenient class initializer
1 parent edf3eff commit d0bcc78

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

ObjectiveGit/GTRepository.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,6 @@ typedef NS_ENUM(NSInteger, GTRepositoryStateType) {
211211
/// Returns the initialized repository, or nil if an error occurred.
212212
+ (nullable instancetype)repositoryWithURL:(NSURL *)localFileURL error:(NSError **)error;
213213

214-
/// Convenience class initializer to find and open a repository with extended controls.
215-
///
216-
/// localFileURL - The file URL for the new repository. Cannot be nil.
217-
/// flags - A combination of the `GTRepositoryOpenFlags` flags.
218-
/// ceilingDirs - A GIT_PATH_LIST_SEPARATOR delimited list of path prefixes at
219-
/// which the search for a containing repository should terminate.
220-
/// Can be NULL.
221-
/// error - The error if one occurs.
222-
///
223-
/// Returns the initialized repository, or nil if an error occurred.
224-
+ (nullable instancetype)initWithURL:(NSURL *)localFileURL flags:(UInt32)flags ceilingDirs:(nullable const char *)ceilingDirs error:(NSError **)error;
225-
226214
/// Convenience initializer which uses the default options.
227215
///
228216
/// localFileURL - The file URL for the new repository. Cannot be nil.

ObjectiveGit/GTRepository.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ + (instancetype)repositoryWithURL:(NSURL *)localFileURL error:(NSError **)error
145145
return [[self alloc] initWithURL:localFileURL error:error];
146146
}
147147

148-
+ (instancetype)initWithURL:(NSURL *)localFileURL flags:(UInt32)flags ceilingDirs:(const char *)ceilingDirs error:(NSError **)error {
149-
return [[self alloc] initWithURL:localFileURL flags:flags ceilingDirs:ceilingDirs error:error];
150-
}
151-
152148
- (instancetype)init {
153149
NSAssert(NO, @"Call to an unavailable initializer.");
154150
return nil;

0 commit comments

Comments
 (0)