From ad4a58e31501bce5de2aad90a620eaecdc1eecb8 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Mon, 5 Nov 2018 11:00:01 -0800 Subject: strings,bytes: use inlineable function trampolines instead of linkname Cleans things up quite a bit. There's still a few more, like runtime.cmpstring, which might also be worth fixing. Change-Id: Ide18dd621efc129cc686db223f47fa0b044b5580 Reviewed-on: https://go-review.googlesource.com/c/148578 Run-TryBot: Keith Randall TryBot-Result: Gobot Gobot Reviewed-by: Austin Clements --- src/strings/strings_decl.go | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/strings/strings_decl.go (limited to 'src/strings/strings_decl.go') diff --git a/src/strings/strings_decl.go b/src/strings/strings_decl.go deleted file mode 100644 index 6718c3ace4..0000000000 --- a/src/strings/strings_decl.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package strings - -//go:noescape - -// IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s. -func IndexByte(s string, c byte) int // in internal/bytealg -- cgit v1.3