all: remove deadcode (#2952)

This commit is contained in:
Kristoffer Dalby
2025-12-10 15:55:15 +01:00
committed by GitHub
parent f3f2d30004
commit 0e1673041c
13 changed files with 3 additions and 301 deletions

View File

@@ -941,18 +941,6 @@ func (h *Headscale) getTLSSettings() (*tls.Config, error) {
}
}
func notFoundHandler(
writer http.ResponseWriter,
req *http.Request,
) {
log.Trace().
Interface("header", req.Header).
Interface("proto", req.Proto).
Interface("url", req.URL).
Msg("Request did not match")
writer.WriteHeader(http.StatusNotFound)
}
func readOrCreatePrivateKey(path string) (*key.MachinePrivate, error) {
dir := filepath.Dir(path)
err := util.EnsureDir(dir)