diff options
author | Lukas Fleischer | 2013-03-04 08:52:34 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2013-03-04 19:50:49 -0500 |
commit | 71926bfb342b75a6721441b1fe9b9db8b50775d5 (patch) | |
tree | bc4e26c356ad8f3a73c77636b34e74f51050e641 /ui-shared.c | |
parent | bafab423f20bc1448b293842c235965e1681f07e (diff) | |
download | cgit-71926bfb342b75a6721441b1fe9b9db8b50775d5.tar.gz cgit-71926bfb342b75a6721441b1fe9b9db8b50775d5.tar.bz2 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>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 12 |
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) | |||
121 | return rvbuf; | 121 | return rvbuf; |
122 | } | 122 | } |
123 | 123 | ||
124 | static char *cgit_currurl() | ||
125 | { | ||
126 | if (!ctx.cfg.virtual_root) | ||
127 | return ctx.cfg.script_name; | ||
128 | else if (ctx.qry.page) | ||
129 | return fmt("%s/%s/%s/", ctx.cfg.virtual_root, ctx.qry.repo, ctx.qry.page); | ||
130 | else if (ctx.qry.repo) | ||
131 | return fmt("%s/%s/", ctx.cfg.virtual_root, ctx.qry.repo); | ||
132 | else | ||
133 | return fmt("%s/", ctx.cfg.virtual_root); | ||
134 | } | ||
135 | |||
136 | static void site_url(const char *page, const char *search, const char *sort, int ofs) | 124 | static void site_url(const char *page, const char *search, const char *sort, int ofs) |
137 | { | 125 | { |
138 | char *delim = "?"; | 126 | char *delim = "?"; |