diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-12-08 09:02:45 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-12-08 09:02:45 +0100 |
commit | bf537f1c6d7dafe3c16f6d2d0b16d3f98754594c (patch) | |
tree | 7260385905cd98df9b66fd07b08361773975446e /releaser | |
parent | e86b331138a9ec12f5304e307111f8bcbb343cf3 (diff) | |
download | hugo-bf537f1c6d7dafe3c16f6d2d0b16d3f98754594c.tar.gz hugo-bf537f1c6d7dafe3c16f6d2d0b16d3f98754594c.zip |
releaser: Remove unused code
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/git.go | 8 | ||||
-rw-r--r-- | releaser/releasenotes_writer.go | 15 |
2 files changed, 0 insertions, 23 deletions
diff --git a/releaser/git.go b/releaser/git.go index 16bcbf2a0..ced363a9d 100644 --- a/releaser/git.go +++ b/releaser/git.go @@ -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 diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go index fcbacd308..3bca5b70a 100644 --- a/releaser/releasenotes_writer.go +++ b/releaser/releasenotes_writer.go @@ -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) |