]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: delete unused variables.
authorKeith Randall <khr@golang.org>
Mon, 29 Sep 2014 21:05:33 +0000 (14:05 -0700)
committerKeith Randall <khr@golang.org>
Mon, 29 Sep 2014 21:05:33 +0000 (14:05 -0700)
We're not comparing with code addresses any more.  Instead,
we use nil algorithm functions to mark uncomparable types.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/151040044

src/runtime/stubs.go

index 1381c7efdbb259e6638edb25f1277946a78104eb..c6a9cf9f544c03b96efefe706f18e9f4a82a992c 100644 (file)
@@ -148,10 +148,6 @@ func fastrand1() uint32
 //go:noescape
 func memeq(a, b unsafe.Pointer, size uintptr) bool
 
-// Code pointers for the nohash/noequal algorithms. Used for producing better error messages.
-var nohashcode uintptr
-var noequalcode uintptr
-
 // noescape hides a pointer from escape analysis.  noescape is
 // the identity function but escape analysis doesn't think the
 // output depends on the input.  noescape is inlined and currently