Skip to content

Commit 7f76c00

Browse files
committed
internal/reflectlite: remove unused mapType
Change-Id: I715186c053bc9911b912e69904735c9498bf9c13 Reviewed-on: https://go-review.googlesource.com/c/go/+/580376 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 903e0ff commit 7f76c00

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/internal/reflectlite/reflect_mirror_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var typeNames = []string{
2424
"chanType",
2525
"funcType",
2626
"interfaceType",
27-
"mapType",
2827
"ptrType",
2928
"sliceType",
3029
"structType",

src/internal/reflectlite/type.go

-14
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,6 @@ type funcType = abi.FuncType
111111

112112
type interfaceType = abi.InterfaceType
113113

114-
// mapType represents a map type.
115-
type mapType struct {
116-
rtype
117-
Key *abi.Type // map key type
118-
Elem *abi.Type // map element (value) type
119-
Bucket *abi.Type // internal bucket structure
120-
// function for hashing keys (ptr to key, seed) -> hash
121-
Hasher func(unsafe.Pointer, uintptr) uintptr
122-
KeySize uint8 // size of key slot
123-
ValueSize uint8 // size of value slot
124-
BucketSize uint16 // size of bucket
125-
Flags uint32
126-
}
127-
128114
// ptrType represents a pointer type.
129115
type ptrType = abi.PtrType
130116

0 commit comments

Comments
 (0)