releaser: Remove unused code

This commit is contained in:
Bjørn Erik Pedersen 2021-12-08 09:02:45 +01:00
parent e86b331138
commit bf537f1c6d
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 0 additions and 23 deletions

View file

@ -25,14 +25,6 @@ import (
var issueRe = regexp.MustCompile(`(?i)(?:Updates?|Closes?|Fix.*|See) #(\d+)`)
const (
notesChanges = "notesChanges"
templateChanges = "templateChanges"
coreChanges = "coreChanges"
outChanges = "outChanges"
otherChanges = "otherChanges"
)
type changeLog struct {
Version string
Notes gitInfos

View file

@ -163,21 +163,6 @@ func fetchThemeCount() (int, error) {
return bytes.Count(b, []byte("\n")) - bytes.Count(b, []byte("#")), nil
}
func writeReleaseNotesToTmpFile(version string, infosMain, infosDocs gitInfos) (string, error) {
f, err := ioutil.TempFile("", "hugorelease")
if err != nil {
return "", err
}
defer f.Close()
if err := writeReleaseNotes(version, infosMain, infosDocs, f); err != nil {
return "", err
}
return f.Name(), nil
}
func getReleaseNotesDocsTempDirAndName(version string, final bool) (string, string) {
if final {
return hugoFilepath("temp"), fmt.Sprintf("%s-relnotes-ready.md", version)