]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Move cgit_get_repoinfo into shared.c
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 3e7e5950ebc9eca6cf4c9f5402024ab8d1a92eb1..431e8fb1ce2a2a727fed8ad9503f56eff550aae1 100644 (file)
--- a/cgit.c
+++ b/cgit.c
 const char cgit_version[] = CGIT_VERSION;
 
 
-static struct repoinfo *cgit_get_repoinfo(char *url)
-{
-       int i;
-       struct repoinfo *repo;
-
-       for (i=0; i<cgit_repolist.count; i++) {
-               repo = &cgit_repolist.repos[i];
-               if (!strcmp(repo->url, url))
-                       return repo;
-       }
-       return NULL;
-}
-
-
 static int cgit_prepare_cache(struct cacheitem *item)
 {
        if (!cgit_query_repo) {