From 79902b439b3ef4c163ff5e96ac1f282f31c8a131 Mon Sep 17 00:00:00 2001 From: "David R. Jenni" Date: Wed, 1 Mar 2017 12:37:16 +0100 Subject: [PATCH] x/tools/container/intsets: remove unused function Found with honnef.co/go/tools/cmd/unused. Change-Id: I54dab41d423050b883a3af1f5bb8c5119e2b7100 Reviewed-on: https://go-review.googlesource.com/37602 Reviewed-by: Alan Donovan --- container/intsets/util.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/container/intsets/util.go b/container/intsets/util.go index dd1db86b..67102781 100644 --- a/container/intsets/util.go +++ b/container/intsets/util.go @@ -4,16 +4,6 @@ package intsets -// From Hacker's Delight, fig 5.2. -func popcountHD(x uint32) int { - x -= (x >> 1) & 0x55555555 - x = (x & 0x33333333) + ((x >> 2) & 0x33333333) - x = (x + (x >> 4)) & 0x0f0f0f0f - x = x + (x >> 8) - x = x + (x >> 16) - return int(x & 0x0000003f) -} - var a [1 << 8]byte func init() {