]> Cypherpunks repositories - gostls13.git/commitdiff
plugin: remove unused func
authorDiego Siqueira <diego9889@gmail.com>
Wed, 1 Aug 2018 10:52:19 +0000 (10:52 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 16:29:03 +0000 (16:29 +0000)
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>

src/plugin/plugin_dlopen.go

index 47f2b29a80b8dcd51f5cb2620aa9fcd9d069707b..f24093989fd6fdbc6302ab23ffd0484314fe95ef 100644 (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)