Skip to content

Commit ce5229e

Browse files
charlie-paxosionutRD
authored andcommitted
just don't export
1 parent e8d8fe0 commit ce5229e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crypto/secp256k1/panic_cb.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ import "unsafe"
1313
// Callbacks for converting libsecp256k1 internal faults into
1414
// recoverable Go panics.
1515

16-
//go:linkname secp256k1GoPanicIllegal secp256k1GoPanicIllegal
17-
//go:noinline
1816
func secp256k1GoPanicIllegal(msg *C.char, data unsafe.Pointer) {
1917
panic("illegal argument: " + C.GoString(msg))
2018
}
2119

22-
//go:linkname secp256k1GoPanicError secp256k1GoPanicError
23-
//go:noinline
2420
func secp256k1GoPanicError(msg *C.char, data unsafe.Pointer) {
2521
panic("internal error: " + C.GoString(msg))
2622
}

0 commit comments

Comments
 (0)