aboutsummaryrefslogtreecommitdiffstats
path: root/lib/templates
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-11-02 22:33:08 +0100
committerReto Brunner <reto@labrat.space>2020-11-14 15:40:13 +0100
commit03fa9ad99bc36e09e489f2a7a588ef745f323801 (patch)
tree96714dd580abc0ba8ceb273811f2deeb5273b44f /lib/templates
parentfc9ccc30008e564c1dea23b3bfe480ca5a10c070 (diff)
downloadaerc-03fa9ad99bc36e09e489f2a7a588ef745f323801.tar.gz
templates: Remove ParseTemplate as it's unused
Diffstat (limited to 'lib/templates')
-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
-}