Skip to content

Commit

Permalink
tools: remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Hellmann <[email protected]>
  • Loading branch information
dhellmann committed Oct 9, 2020
1 parent 5ccb897 commit cb5c6b6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tools/enhancements/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb5c6b6

Please sign in to comment.