Skip to content

Commit 6db6979

Browse files
committed
cmd/compile: remove unused cases from switch
The first just falls through, and the default case does nothing. They can be deleted. Change-Id: I82ab1ce3acde0b8423334cfbf35f9e0c806cd494 Reviewed-on: https://go-review.googlesource.com/65410 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 83f0af1 commit 6db6979

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cmd/compile/internal/gc/racewalk.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,6 @@ func makeaddable(n *Node) {
553553
makeaddable(n.Left)
554554

555555
// nothing to do
556-
case ODOTPTR:
557-
fallthrough
558-
default:
559-
break
560556
}
561557
}
562558

0 commit comments

Comments
 (0)