]> Cypherpunks repositories - gostls13.git/commitdiff
internal/reflectlite: remove unused mapType
authorMichael Pratt <mpratt@google.com>
Fri, 19 Apr 2024 20:14:54 +0000 (16:14 -0400)
committerMichael Pratt <mpratt@google.com>
Fri, 19 Apr 2024 21:11:15 +0000 (21:11 +0000)
Change-Id: I715186c053bc9911b912e69904735c9498bf9c13
Reviewed-on: https://go-review.googlesource.com/c/go/+/580376
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/internal/reflectlite/reflect_mirror_test.go
src/internal/reflectlite/type.go

index 0fd004eef5e48a2ac81ef0a8a6f889841918dd5b..c87573903454edb4b4e8f531c0f3aaebc25035a9 100644 (file)
@@ -24,7 +24,6 @@ var typeNames = []string{
        "chanType",
        "funcType",
        "interfaceType",
-       "mapType",
        "ptrType",
        "sliceType",
        "structType",
index 085863e3d49d894328e91f1c7188946744f40948..af581d3a71c61a4362b40cabe88073a07c07448c 100644 (file)
@@ -111,20 +111,6 @@ type funcType = abi.FuncType
 
 type interfaceType = abi.InterfaceType
 
-// mapType represents a map type.
-type mapType struct {
-       rtype
-       Key    *abi.Type // map key type
-       Elem   *abi.Type // map element (value) type
-       Bucket *abi.Type // internal bucket structure
-       // function for hashing keys (ptr to key, seed) -> hash
-       Hasher     func(unsafe.Pointer, uintptr) uintptr
-       KeySize    uint8  // size of key slot
-       ValueSize  uint8  // size of value slot
-       BucketSize uint16 // size of bucket
-       Flags      uint32
-}
-
 // ptrType represents a pointer type.
 type ptrType = abi.PtrType