summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-03-04 07:52:34 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-05 00:50:49 +0000
commit71926bfb342b75a6721441b1fe9b9db8b50775d5 (patch)
treebc4e26c356ad8f3a73c77636b34e74f51050e641
parentbafab423f20bc1448b293842c235965e1681f07e (diff)
downloadcgit-71926bfb342b75a6721441b1fe9b9db8b50775d5.tar
cgit-71926bfb342b75a6721441b1fe9b9db8b50775d5.tar.gz
cgit-71926bfb342b75a6721441b1fe9b9db8b50775d5.zip
ui-shared.c: Remove unused function cgit_currurl()
This is no longer used as of commit 0c8e184e. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
-rw-r--r--ui-shared.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 63a7116..31224bc 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -121,18 +121,6 @@ const char *cgit_repobasename(const char *reponame)
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 = "?";