aboutsummaryrefslogtreecommitdiff
path: root/http_handle_gc.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-05 17:35:05 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-05 17:35:05 +0800
commitac81280061c65cf90bcfd103e38361dd95ef54bb (patch)
treeb127f6ee0943dd1ed17fae751b509811cf9ffd71 /http_handle_gc.go
parentRefactor git2d comms to ./git2c (diff)
downloadforge-ac81280061c65cf90bcfd103e38361dd95ef54bb.tar.gz
forge-ac81280061c65cf90bcfd103e38361dd95ef54bb.tar.zst
forge-ac81280061c65cf90bcfd103e38361dd95ef54bb.zip
HTTP: Remove GC
Diffstat (limited to 'http_handle_gc.go')
-rw-r--r--http_handle_gc.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/http_handle_gc.go b/http_handle_gc.go
deleted file mode 100644
index 83d2e06..0000000
--- a/http_handle_gc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: AGPL-3.0-only
-// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
-
-package main
-
-import (
- "net/http"
- "runtime"
-)
-
-// httpHandleGC handles an HTTP request by calling the garbage collector and
-// redirecting the user back to the home page.
-//
-// TODO: This should probably be removed or hidden behind an administrator's
-// control panel, in the future.
-func httpHandleGC(writer http.ResponseWriter, request *http.Request, _ map[string]any) {
- runtime.GC()
- http.Redirect(writer, request, "/", http.StatusSeeOther)
-}