]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused alg constants
authorMartin Möhrmann <moehrmann@google.com>
Tue, 13 Oct 2020 06:26:36 +0000 (08:26 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Tue, 13 Oct 2020 18:27:28 +0000 (18:27 +0000)
CL 191198 removed algarray from the runtime
which used these constants as indices.

Change-Id: Ia669cf410372ef5113dadccd115a39ff8d47e5c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/261364
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
Trust: Martin Möhrmann <moehrmann@google.com>

src/runtime/alg.go

index 4a98b84e4a4881db4ac84e9ab1553cee76326499..2ec3fc3658af9319435a45dd20f1e3a44de52396 100644 (file)
@@ -15,25 +15,6 @@ const (
        c1 = uintptr((8-sys.PtrSize)/4*3267000013 + (sys.PtrSize-4)/4*23344194077549503)
 )
 
-// type algorithms - known to compiler
-const (
-       alg_NOEQ = iota
-       alg_MEM0
-       alg_MEM8
-       alg_MEM16
-       alg_MEM32
-       alg_MEM64
-       alg_MEM128
-       alg_STRING
-       alg_INTER
-       alg_NILINTER
-       alg_FLOAT32
-       alg_FLOAT64
-       alg_CPLX64
-       alg_CPLX128
-       alg_max
-)
-
 func memhash0(p unsafe.Pointer, h uintptr) uintptr {
        return h
 }