From cb5c6b672ffeaf37e1e4953e8b6d35952581dcd3 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 9 Oct 2020 11:32:24 -0400 Subject: [PATCH] tools: remove unused code Signed-off-by: Doug Hellmann --- tools/enhancements/summary.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tools/enhancements/summary.go b/tools/enhancements/summary.go index 6360f1cde9..91e8d9b166 100644 --- a/tools/enhancements/summary.go +++ b/tools/enhancements/summary.go @@ -100,21 +100,6 @@ func extractSummary(body string) string { return b.String() } -// getEnhancementFilename returns the filename of the enhancement -// document modified by the pull request -func getEnhancementFilename(pr int) (filename string, err error) { - filenames, err := getModifiedFiles(pr) - if err != nil { - return "", errors.Wrap(err, "could not determine the list of modified files") - } - for _, name := range filenames { - if strings.HasPrefix(name, "enhancements/") { - return name, nil - } - } - return "", fmt.Errorf("could not find an enhancement file for PR %d", pr) -} - // GetGroup returns the grouping of the enhancement, based // on the filename. Documents are normally named // "enhancements/group/title.md" or "enhancements/title.md"