mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
releaser: Remove unused code
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user