Skip to content

Commit

Permalink
fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus committed May 19, 2022
1 parent 4c76038 commit 6713997
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions go/okapi/native_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package okapi

import (
"github.com/coreos/pkg/dlopen"
"syscall"
"unsafe"
)

Expand Down Expand Up @@ -108,14 +107,3 @@ func cByteBufferFree(cRespBuf C.ByteBuffer) error {
C.okapi_bytebuffer_free(funcPtr, cRespBuf)
return nil
}

func okapiStringFree(s uintptr) error {
dll := syscall.MustLoadDLL(getLibraryPath())
okapiFunc := dll.MustFindProc("okapi_string_free")
_, _, err := okapiFunc.Call(s)
if err != syscall.Errno(0x0) {
// Actually check the syscall.Errno to see if it's a real error
return err
}
return nil
}

0 comments on commit 6713997

Please sign in to comment.