]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: cull dead code
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 11 Jul 2016 23:05:41 +0000 (16:05 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 22 Aug 2016 16:41:34 +0000 (16:41 +0000)
They are unused, and vet wants them to have
a function prototype.

Updates #11041

Change-Id: Idedc96ddd3c3cf1b1d2ab6d98796367eab29f032
Reviewed-on: https://go-review.googlesource.com/27492
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/asm.s
src/runtime/internal/atomic/asm.s [deleted file]
src/runtime/internal/atomic/sys_nacl_arm.s

index 646dc2ff07e7fb1f6ad625d24688663f6d946aeb..3ddea7c055f5d0fd5c2f2555982dd2ab16f9757d 100644 (file)
@@ -12,8 +12,5 @@ DATA runtime·no_pointers_stackmap+0x00(SB)/4, $2
 DATA runtime·no_pointers_stackmap+0x04(SB)/4, $0
 GLOBL runtime·no_pointers_stackmap(SB),RODATA, $8
 
-TEXT runtime·nop(SB),NOSPLIT,$0-0
-       RET
-
 GLOBL runtime·mheap_(SB), NOPTR, $0
 GLOBL runtime·memstats(SB), NOPTR, $0
diff --git a/src/runtime/internal/atomic/asm.s b/src/runtime/internal/atomic/asm.s
deleted file mode 100644 (file)
index 8488585..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2015 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.
-
-#include "textflag.h"
-
-TEXT runtime∕internal∕atomic·nop(SB),NOSPLIT,$0-0
-       RET
index efa960474de7b56827f8971b5899d7dba31098ae..bdc1dd6bcd7c8945bc6de05b2b2bd224a9c5abb3 100644 (file)
@@ -4,9 +4,6 @@
 
 #include "textflag.h"
 
-TEXT runtime∕internal∕atomic·Casp(SB),NOSPLIT,$0
-       B       runtime·cas(SB)
-
 // This is only valid for ARMv6+, however, NaCl/ARM is only defined
 // for ARMv7A anyway.
 TEXT runtime∕internal∕atomic·Cas(SB),NOSPLIT,$0