all: Remove miscellaneous vestigial code (#7495)

This commit is contained in:
Jakob Borg
2021-03-17 22:23:12 +01:00
committed by GitHub
parent f4372710bf
commit 3ac858b150
10 changed files with 9 additions and 55 deletions
+5
View File
@@ -426,6 +426,11 @@ func CpuBench(ctx context.Context, iterations int, duration time.Duration, useWe
perf = v
}
}
if blocksResult == nil {
// not looking at the blocksResult makes it unused from a static
// analysis / compiler standpoint...
panic("blocksResult should have been set by benchmark loop")
}
blocksResult = nil
return perf
}