]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: remove outdated warning from pre-go1.
authorDaniel Morsing <daniel.morsing@gmail.com>
Thu, 18 Dec 2014 08:36:07 +0000 (09:36 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Thu, 18 Dec 2014 08:52:30 +0000 (08:52 +0000)
People are probably not making this mistake anymore.

Fixes #9164

Change-Id: I86b440ed63d09b4ca676bba7034838860f1a5d8b
Reviewed-on: https://go-review.googlesource.com/1782
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/gc/typecheck.c

index f05d8022d087e981702fa20ba5f416ba7806650c..72f4d6f3ebd8d603cee4b063343d8dcd6da59cff 100644 (file)
@@ -2959,14 +2959,6 @@ typecheckas2(Node *n)
        l = n->list->n;
        r = n->rlist->n;
 
-       // m[i] = x, ok
-       if(cl == 1 && cr == 2 && l->op == OINDEXMAP) {
-               if(l->type == T)
-                       goto out;
-               yyerror("assignment count mismatch: %d = %d (use delete)", cl, cr);
-               goto out;
-       }
-
        // x,y,z = f()
        if(cr == 1) {
                if(r->type == T)