all repos — elgit @ d26005f4df6b71f03f61d0b7b7f58ed05f78a3fd

fork of legit: web frontend for git, written in go

remove dead code

Alan Pearce
commit

d26005f4df6b71f03f61d0b7b7f58ed05f78a3fd

parent

f6777b266e76778fc625a06bb4cfc00a738e934d

1 file changed, 0 insertions(+), 11 deletions(-)

changed files
M routes/handler.goroutes/handler.go
@@ -3,10 +3,7 @@
import ( "log" "net/http" - "os" "path" - "slices" - "strings" "github.com/dimfeld/httptreemux/v5"
@@ -66,14 +63,6 @@ d := deps{
c, projects, } - - categories := []string{} - for _, project := range projects { - if cat, _, found := strings.Cut(project, string(os.PathSeparator)); found { - categories = append(categories, cat) - } - } - categories = slices.Compact(categories) mux.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) { d.Write404(w)