git: d8eb0430bc - main - ports.cgi: remove stale function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jan 2026 17:30:28 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/doc/commit/?id=d8eb0430bc212802567d2c0c6f2ad7fcd0c205c1
commit d8eb0430bc212802567d2c0c6f2ad7fcd0c205c1
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-01-19 17:30:19 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-01-19 17:30:19 +0000
ports.cgi: remove stale function
---
website/content/en/cgi/ports.cgi | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 919f5830e7..f82593ad9e 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -92,23 +92,6 @@ sub init_variables {
$ENV{'PATH'} = '/bin:/usr/bin';
}
-sub packages_exist {
- local ( $file, *p ) = @_;
-
- open( P, $file ) || do {
- warn "open $file: $!\n";
- warn "Cannot create packages links\n";
- return 1;
- };
-
- while (<p>) {
- chop;
- $p{$_} = 1;
- }
- close P;
- return 0;
-}
-
# return the date of the last ports database update
sub last_update {
local ($file) = "$portsDatabaseHeadDir/$ports_database";