aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/http.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-23 20:01:56 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-23 20:01:56 +0200
commit91e34fcf151aa1c4bf7be930c17c1ce230105997 (patch)
tree7f7c709c45908a7e5367b70d86d56911f4e96da0 /src/http.go
parent1fa28b038e5383eb99732b318f8a72b1e6d30dec (diff)
Remove commented out code
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/http.go b/src/http.go
index 097b8f8..ce31372 100644
--- a/src/http.go
+++ b/src/http.go
@@ -147,7 +147,6 @@ func mintageHandler(next http.Handler) http.Handler {
return
}
- /* processMintages(&td.Mintages, td.Type) */
next.ServeHTTP(w, r)
})
}
@@ -192,35 +191,3 @@ func throwError(status int, err error, w http.ResponseWriter, r *http.Request) {
Msg: http.StatusText(status),
})
}
-
-/* func processMintages(md *dbx.MintageData, typeStr string) {
- var typ int
- switch typeStr {
- case "nifc":
- typ = dbx.TypeNifc
- case "proof":
- typ = dbx.TypeProof
- default:
- typ = dbx.TypeCirc
- }
-
- md.Standard = slices.DeleteFunc(md.Standard,
- func(x dbx.MSRow) bool { return x.Type != typ })
- md.Commemorative = slices.DeleteFunc(md.Commemorative,
- func(x dbx.MCRow) bool { return x.Type != typ })
- slices.SortFunc(md.Standard, func(x, y dbx.MSRow) int {
- if x.Year != y.Year {
- return x.Year - y.Year
- }
- return strings.Compare(x.Mintmark, y.Mintmark)
- })
- slices.SortFunc(md.Commemorative, func(x, y dbx.MCRow) int {
- if x.Year != y.Year {
- return x.Year - y.Year
- }
- if x.Number != y.Number {
- return x.Number - y.Number
- }
- return strings.Compare(x.Mintmark, y.Mintmark)
- })
-} */