aboutsummaryrefslogtreecommitdiff
path: root/src/plugin
diff options
context:
space:
mode:
authorDiego Siqueira <diego9889@gmail.com>2018-08-01 10:52:19 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-22 16:29:03 +0000
commitbca00def0dcde59312574b98568fd4698a61dfdd (patch)
treec603386d226742ff065add79d18c457da7867d3e /src/plugin
parent02fecd33f608e3a2f11fcee424d55232f08c28cd (diff)
downloadgo-bca00def0dcde59312574b98568fd4698a61dfdd.tar.gz
go-bca00def0dcde59312574b98568fd4698a61dfdd.zip
plugin: remove unused func
Change-Id: Ife29464d581f00940af7ef9251bf99661c1350b6 GitHub-Last-Rev: d7747706584b06b619fc78a85b6b9bfe619467c8 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>
Diffstat (limited to 'src/plugin')
-rw-r--r--src/plugin/plugin_dlopen.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugin/plugin_dlopen.go b/src/plugin/plugin_dlopen.go
index 47f2b29a80..f24093989f 100644
--- a/src/plugin/plugin_dlopen.go
+++ b/src/plugin/plugin_dlopen.go
@@ -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)