1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:20:22 -07:00

Plugin: Remove unused func

This commit is contained in:
Diego Siqueira 2018-08-01 12:28:27 +02:00
parent 740e589bd0
commit d774770658

View File

@ -39,16 +39,6 @@ import (
"unsafe"
)
// avoid a dependency on strings
func lastIndexByte(s string, c byte) int {
for i := len(s) - 1; i >= 0; i-- {
if s[i] == c {
return i
}
}
return -1
}
func open(name string) (*Plugin, error) {
cPath := make([]byte, C.PATH_MAX+1)
cRelName := make([]byte, len(name)+1)