From f448c212a101f4fcf54a694e4a1cfd3459635bcb Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Thu, 11 Apr 2019 16:48:05 -0400 Subject: [PATCH] runtime: delete unused isscanstatus function Change-Id: I693250e980cc60ea151736b42ac6b1426ab801b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/171765 Run-TryBot: Austin Clements Reviewed-by: Michael Knyszek TryBot-Result: Gobot Gobot --- src/runtime/proc.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 1e3c53826c..16794e1ab0 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -692,13 +692,6 @@ func freezetheworld() { usleep(1000) } -func isscanstatus(status uint32) bool { - if status == _Gscan { - throw("isscanstatus: Bad status Gscan") - } - return status&_Gscan == _Gscan -} - // All reads and writes of g's status go through readgstatus, casgstatus // castogscanstatus, casfrom_Gscanstatus. //go:nosplit -- 2.50.0