]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - warc/header.go
Unused function
[tofuproxy.git] / warc / header.go
index 851113332e5b4aaafb043f9bdc0f2f2f0096eb2f..61c18bd9b543e87728470c85b3c255b95475cd05 100644 (file)
@@ -1,7 +1,7 @@
 /*
 tofuproxy -- flexible HTTP/HTTPS proxy, TLS terminator, X.509 TOFU
              manager, WARC/geminispace browser
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -22,14 +22,6 @@ import "strings"
 
 type Header map[string]string
 
-func splitKeyValue(line string) (string, string) {
-       parts := strings.SplitN(line, ":", 2)
-       if len(parts) != 2 {
-               return "", ""
-       }
-       return parts[0], strings.TrimSpace(parts[1])
-}
-
 func NewHeader() Header {
        return make(map[string]string)
 }