Diff options
Diffstat (limited to '')
-rw-r--r--source/html.c20
-rw-r--r--source/html.h2
-rw-r--r--source/ui-repolist.c6
3 files changed, 4 insertions, 24 deletions
diff --git a/source/html.c b/source/html.c
index 48f7a88..94758e5 100644
--- a/source/html.c
+++ b/source/html.c
@@ -504,26 +504,6 @@ void html_intoption(int value, const char *text, int selected_value)
html("</option>\n");
}
-void html_link_open(const char *url, const char *title, const char *class)
-{
- html("<a href='");
- html_attr(url);
- if (title) {
- html("' title='");
- html_attr(title);
- }
- if (class) {
- html("' class='");
- html_attr(class);
- }
- html("'>");
-}
-
-void html_link_close(void)
-{
- html("</a>");
-}
-
void html_include(const char *filename)
{
FILE *f;
diff --git a/source/html.h b/source/html.h
index e962a53..1b20cdb 100644
--- a/source/html.h
+++ b/source/html.h
@@ -94,8 +94,6 @@ extern char *cgit_fmt(const char *format, ...);
extern void html_option(const char *value, const char *text, const char *selected_value);
extern void html_intoption(int value, const char *text, int selected_value);
-extern void html_link_open(const char *url, const char *title, const char *class);
-extern void html_link_close(void);
extern void html_include(const char *filename);
extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value));
diff --git a/source/ui-repolist.c b/source/ui-repolist.c
index 7e9c167..001e51b 100644
--- a/source/ui-repolist.c
+++ b/source/ui-repolist.c
@@ -224,11 +224,13 @@ static void print_repo_row(const char *currenturl, int sublevel)
cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
html("</td><td class='col-desc'>");
repourl = cgit_repourl(ctx.repo->url);
- html_link_open(repourl, NULL, NULL);
+ html("<a href='");
+ html_attr(repourl);
+ html("'>");
free(repourl);
if (html_ntxt(ctx.repo->desc, ctx.cfg.max_repodesc_len) < 0)
html("...");
- html_link_close();
+ html("</a>");
html("</td>");
if (ctx.cfg.enable_index_owner) {
html("<td class='col-owner'>");