From: Diego Siqueira Date: Wed, 1 Aug 2018 10:52:19 +0000 (+0000) Subject: plugin: remove unused func X-Git-Tag: go1.12beta1~1341 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bca00def0dcde59312574b98568fd4698a61dfdd;p=gostls13.git 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- 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)