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:
parent
740e589bd0
commit
d774770658
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user