From 02eab930c9f7b481a62f3232f6e5b154a6a922f8 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 25 Feb 2024 22:20:23 +0100 Subject: [PATCH] routers/web: Drop an unused branch from repo.Action The "desc" action has not been used since at least 2016, probably much earlier. It's an ancient Gogs artifact - drop it. Signed-off-by: Gergely Nagy --- routers/web/repo/repo.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index bede21be1..c6f4304cc 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -323,15 +323,6 @@ func Action(ctx *context.Context) { err = acceptOrRejectRepoTransfer(ctx, true) case "reject_transfer": err = acceptOrRejectRepoTransfer(ctx, false) - case "desc": // FIXME: this is not used - if !ctx.Repo.IsOwner() { - ctx.Error(http.StatusNotFound) - return - } - - ctx.Repo.Repository.Description = ctx.FormString("desc") - ctx.Repo.Repository.Website = ctx.FormString("site") - err = repo_service.UpdateRepository(ctx, ctx.Repo.Repository, false) } if err != nil {