ref: 186ec93c43fb4be482679dce0728aa70621a1c32
parent: e596cb983af53d3a18b484302b53ce8e0f8ec58f
author: Alex Musolino <alex@musolino.id.au>
date: Fri Dec 8 05:28:00 EST 2023
imgsrv.go: drop dead code
--- a/imgsrv.go
+++ b/imgsrv.go
@@ -543,10 +543,6 @@
Tags *Tags
}
-func (h *TagApiHandler) addTag(img, tag string) {
-
-}
-
func (h *TagApiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if err := r.ParseForm(); err != nil {
http.Error(w, "bad request", 400)
@@ -561,9 +557,6 @@
action := "adding"
if delete {
action = "deleting"
- }
- for _, tag := range r.Form["tags"] {
- h.addTag(img, tag)
}
for _, v := range r.Form["tags"] {
tags := strings.Split(v, " ")