git » dnss » commit 2901f57

httpserver: Remove unused functions

author Alberto Bertogli
2018-04-14 12:31:32 UTC
committer Alberto Bertogli
2018-04-14 12:31:32 UTC
parent 1e7001f23d121fb54c6646fdabb5e4db0d93b4cc

httpserver: Remove unused functions

internal/httpserver/server.go +0 -9

diff --git a/internal/httpserver/server.go b/internal/httpserver/server.go
index e14c339..ce92bef 100644
--- a/internal/httpserver/server.go
+++ b/internal/httpserver/server.go
@@ -233,10 +233,6 @@ type query struct {
 	clientSubnet *net.IPNet
 }
 
-func (q query) String() string {
-	return fmt.Sprintf("{%s %d %v %s}", q.name, q.rrType, q.cd, q.clientSubnet)
-}
-
 var (
 	errEmptyName     = fmt.Errorf("empty name")
 	errNameTooLong   = fmt.Errorf("name too long")
@@ -371,8 +367,3 @@ func (s *Server) resolveDoH(tr trace.Trace, w http.ResponseWriter, dnsQuery []by
 	w.WriteHeader(http.StatusOK)
 	w.Write(packed)
 }
-
-func parseContentType(s string) (string, error) {
-	mt, _, err := mime.ParseMediaType(s)
-	return mt, err
-}