aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/hashmap.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-04-01 22:31:27 -0700
committerRuss Cox <rsc@golang.org>2010-04-01 22:31:27 -0700
commitf75d0d224f1da1781f59bc9e836f8220130747a9 (patch)
tree798bf99d5ad5c793c64312e6730c6e51768e3ed2 /src/pkg/runtime/hashmap.c
parentd6589377c6e48af1990ada22ea47e1bd131c5f62 (diff)
downloadgo-f75d0d224f1da1781f59bc9e836f8220130747a9.tar.xz
runtime: turn run time errors checks into panics
R=ken2, r CC=golang-dev https://golang.org/cl/871042
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
-rw-r--r--src/pkg/runtime/hashmap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c
index ccb5cfdb56..f27264b682 100644
--- a/src/pkg/runtime/hashmap.c
+++ b/src/pkg/runtime/hashmap.c
@@ -770,10 +770,6 @@ void
mapaccess(h, ak, av, &pres);
-// new spec -- all elements have "zero" value
-// if(!pres)
-// throw("runtime.mapaccess1: key not in map");
-
if(debug) {
prints("runtime.mapaccess1: map=");
·printpointer(h);