From c8de8e11aae33afdcca8a767fc25aae0ea76da2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=ABl=20Stemmer?= <stemmertech@gmail.com>
Date: Sun, 6 Mar 2022 14:50:38 +0000
Subject: [PATCH] gtr: Remove unused findBenchmark function

---
 pkg/gtr/builder.go | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/pkg/gtr/builder.go b/pkg/gtr/builder.go
index f95f74d..142bf26 100644
--- a/pkg/gtr/builder.go
+++ b/pkg/gtr/builder.go
@@ -253,21 +253,6 @@ func (b *ReportBuilder) findTest(name string) int {
 	return -1
 }
 
-// findBenchmark returns the id of the most recently created benchmark with the
-// given name, or -1 if no such benchmark exists.
-func (b *ReportBuilder) findBenchmark(name string) int {
-	// check if this benchmark was lastId
-	if bm, ok := b.benchmarks[b.lastId]; ok && bm.Name == name {
-		return b.lastId
-	}
-	for id := len(b.benchmarks); id >= 0; id-- {
-		if b.benchmarks[id].Name == name {
-			return id
-		}
-	}
-	return -1
-}
-
 // containsFailingTest return true if the current list of tests contains at
 // least one failing test or an unknown result.
 func (b *ReportBuilder) containsFailingTest() bool {