Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed convenient class initializer
  • Loading branch information
glegrain committed Oct 31, 2016
commit d0bcc78dff1025a635f8f8d8c377f6272e9442f2
12 changes: 0 additions & 12 deletions ObjectiveGit/GTRepository.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,6 @@ typedef NS_ENUM(NSInteger, GTRepositoryStateType) {
/// Returns the initialized repository, or nil if an error occurred.
+ (nullable instancetype)repositoryWithURL:(NSURL *)localFileURL error:(NSError **)error;

/// Convenience class initializer to find and open a repository with extended controls.
///
/// localFileURL - The file URL for the new repository. Cannot be nil.
/// flags - A combination of the `GTRepositoryOpenFlags` flags.
/// ceilingDirs - A GIT_PATH_LIST_SEPARATOR delimited list of path prefixes at
/// which the search for a containing repository should terminate.
/// Can be NULL.
/// error - The error if one occurs.
///
/// Returns the initialized repository, or nil if an error occurred.
+ (nullable instancetype)initWithURL:(NSURL *)localFileURL flags:(UInt32)flags ceilingDirs:(nullable const char *)ceilingDirs error:(NSError **)error;

/// Convenience initializer which uses the default options.
///
/// localFileURL - The file URL for the new repository. Cannot be nil.
Expand Down
4 changes: 0 additions & 4 deletions ObjectiveGit/GTRepository.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ + (instancetype)repositoryWithURL:(NSURL *)localFileURL error:(NSError **)error
return [[self alloc] initWithURL:localFileURL error:error];
}

+ (instancetype)initWithURL:(NSURL *)localFileURL flags:(UInt32)flags ceilingDirs:(const char *)ceilingDirs error:(NSError **)error {
return [[self alloc] initWithURL:localFileURL flags:flags ceilingDirs:ceilingDirs error:error];
}

- (instancetype)init {
NSAssert(NO, @"Call to an unavailable initializer.");
return nil;
Expand Down