aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/templates/template.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/templates/template.go b/lib/templates/template.go
index 1c7b5468..f979ba23 100644
--- a/lib/templates/template.go
+++ b/lib/templates/template.go
@@ -211,17 +211,3 @@ func ParseTemplateFromFile(templateName string, templateDirs []string, data inte
}
return &body, nil
}
-
-func ParseTemplate(templateText string, data interface{}) ([]byte, error) {
- emailTemplate, err :=
- template.New("email_template").Funcs(templateFuncs).Parse(templateText)
- if err != nil {
- return nil, err
- }
-
- var outString bytes.Buffer
- if err := emailTemplate.Execute(&outString, data); err != nil {
- return nil, err
- }
- return outString.Bytes(), nil
-}