]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui-shared.c: Remove unused function cgit_currurl()
[ps-cgit] / ui-shared.c
index 63a7116c4a60e1863e1667d239054e2e0c595256..31224bc1aa23cb80118275a5077c5f28a4f8bfe9 100644 (file)
@@ -121,18 +121,6 @@ const char *cgit_repobasename(const char *reponame)
        return rvbuf;
 }
 
        return rvbuf;
 }
 
-static char *cgit_currurl()
-{
-       if (!ctx.cfg.virtual_root)
-               return ctx.cfg.script_name;
-       else if (ctx.qry.page)
-               return fmt("%s/%s/%s/", ctx.cfg.virtual_root, ctx.qry.repo, ctx.qry.page);
-       else if (ctx.qry.repo)
-               return fmt("%s/%s/", ctx.cfg.virtual_root, ctx.qry.repo);
-       else
-               return fmt("%s/", ctx.cfg.virtual_root);
-}
-
 static void site_url(const char *page, const char *search, const char *sort, int ofs)
 {
        char *delim = "?";
 static void site_url(const char *page, const char *search, const char *sort, int ofs)
 {
        char *delim = "?";