From 27eebbabc23366552508f4b13375f8729b90aacb Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 15 Sep 2016 00:52:36 -0700 Subject: cmd/compile, runtime: remove throwreturn Change-Id: If8d27cf1cd8d650ed0ba332448d3174d80b6b0ca Reviewed-on: https://go-review.googlesource.com/29217 Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/runtime/panic.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/runtime/panic.go') diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 016e29013a..787c4300dd 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -62,10 +62,6 @@ func panicmem() { panic(memoryError) } -func throwreturn() { - throw("no return at end of a typed function - compiler is broken") -} - func throwinit() { throw("recursive call during initialization - linker skew") } -- cgit v1.3-5-g9baa