git: d8eb0430bc - main - ports.cgi: remove stale function

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=d8eb0430bc212802567d2c0c6f2ad7fcd0c205c1

commit d8eb0430bc212802567d2c0c6f2ad7fcd0c205c1
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2026-01-19 17:30:19 +0000
Commit:     Wolfram Schneider <[email protected]>
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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.