mirror of
https://git.zx2c4.com/cgit
synced 2024-11-09 10:08:42 +00:00
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>
This commit is contained in:
parent
bafab423f2
commit
71926bfb34
12
ui-shared.c
12
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 = "?";
|
||||
|
Loading…
Reference in New Issue
Block a user