Remove custom checkout opts init function

This commit is contained in:
Carlos Martín Nieto 2014-03-11 03:14:36 +01:00
parent 42fce02197
commit b5b0f3f50e
1 changed files with 1 additions and 5 deletions

View File

@ -2,10 +2,6 @@ package git
/*
#include <git2.h>
git_checkout_options git_checkout_opts_init() {
git_checkout_options ret = GIT_CHECKOUT_OPTIONS_INIT;
return ret;
}
*/
import "C"
import (
@ -44,7 +40,7 @@ type CheckoutOpts struct {
// Convert the CheckoutOpts struct to the corresponding C-struct
func populateCheckoutOpts(ptr *C.git_checkout_options, opts *CheckoutOpts) {
*ptr = C.git_checkout_opts_init()
C.git_checkout_init_opts(ptr, 1)
if opts == nil {
return
}