mirror of
https://github.com/golang/go
synced 2024-11-26 15:46:54 -07:00
plugin: remove unused func
Change-Id: Ife29464d581f00940af7ef9251bf99661c1350b6
GitHub-Last-Rev: d774770658
GitHub-Pull-Request: golang/go#26740
Reviewed-on: https://go-review.googlesource.com/127195
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
02fecd33f6
commit
bca00def0d
@ -39,16 +39,6 @@ import (
|
|||||||
"unsafe"
|
"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) {
|
func open(name string) (*Plugin, error) {
|
||||||
cPath := make([]byte, C.PATH_MAX+1)
|
cPath := make([]byte, C.PATH_MAX+1)
|
||||||
cRelName := make([]byte, len(name)+1)
|
cRelName := make([]byte, len(name)+1)
|
||||||
|
Loading…
Reference in New Issue
Block a user