Skip to content

Commit d95c1b5

Browse files
ydnardeadprogram
authored andcommitted
reflect: remove unused go:linkname functions
1 parent 24eed9e commit d95c1b5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/reflect/value.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ func Indirect(v Value) Value {
1313
return Value{reflectlite.Indirect(v.Value)}
1414
}
1515

16-
//go:linkname composeInterface runtime.composeInterface
17-
func composeInterface(unsafe.Pointer, unsafe.Pointer) interface{}
18-
19-
//go:linkname decomposeInterface runtime.decomposeInterface
20-
func decomposeInterface(i interface{}) (unsafe.Pointer, unsafe.Pointer)
21-
2216
func ValueOf(i interface{}) Value {
2317
return Value{reflectlite.ValueOf(i)}
2418
}
@@ -61,12 +55,6 @@ func (v Value) MapIndex(key Value) Value {
6155
return Value{v.Value.MapIndex(key.Value)}
6256
}
6357

64-
//go:linkname hashmapNewIterator runtime.hashmapNewIterator
65-
func hashmapNewIterator() unsafe.Pointer
66-
67-
//go:linkname hashmapNext runtime.hashmapNext
68-
func hashmapNext(m unsafe.Pointer, it unsafe.Pointer, key, value unsafe.Pointer) bool
69-
7058
func (v Value) MapRange() *MapIter {
7159
return (*MapIter)(v.Value.MapRange())
7260
}
@@ -97,9 +85,6 @@ func (v Value) Convert(t Type) Value {
9785
return Value{v.Value.Convert(toRawType(t))}
9886
}
9987

100-
//go:linkname slicePanic runtime.slicePanic
101-
func slicePanic()
102-
10388
func MakeSlice(typ Type, len, cap int) Value {
10489
return Value{reflectlite.MakeSlice(toRawType(typ), len, cap)}
10590
}
@@ -158,9 +143,6 @@ func (v Value) FieldByNameFunc(match func(string) bool) Value {
158143
return Value{v.Value.FieldByNameFunc(match)}
159144
}
160145

161-
//go:linkname hashmapMake runtime.hashmapMake
162-
func hashmapMake(keySize, valueSize uintptr, sizeHint uintptr, alg uint8) unsafe.Pointer
163-
164146
type SelectDir int
165147

166148
const (

0 commit comments

Comments
 (0)