make unsafe functions internal

This commit is contained in:
Yifei Teng 2018-05-01 13:00:12 -05:00
parent b6e94b291c
commit 81d2fb210a

View File

@ -584,7 +584,7 @@ final public class Repository {
}
/// Get the index for the repo. The caller is responsible for freeing the index.
public func unsafeIndex() -> Result<OpaquePointer, NSError> {
func unsafeIndex() -> Result<OpaquePointer, NSError> {
var index: OpaquePointer? = nil
let result = git_repository_index(&index, self.pointer)
guard result == GIT_OK.rawValue && index != nil else {