Remove uneeded locking of os thread in calling local C function

This commit is contained in:
Michael Boulton 2020-08-17 08:07:06 +01:00
parent 067989fe99
commit 97267d3f6e
No known key found for this signature in database
GPG Key ID: 8A62CA0BE2E0197E
1 changed files with 0 additions and 3 deletions

View File

@ -912,9 +912,6 @@ func deltaApplyCallback(_delta *C.git_diff_delta, _payload unsafe.Pointer) C.int
func DefaultApplyOptions() (*ApplyOptions, error) {
opts := C.git_apply_options{}
runtime.LockOSThread()
defer runtime.UnlockOSThread()
C._go_git_apply_init_options(&opts)
return applyOptionsFromC(&opts), nil