Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/ui-shared.c b/ui-shared.c index 71c899a..64ee79c 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -136,8 +136,8 @@ static char *repolink(char *title, char *class, char *page, char *head, return fmt("%s", delim); } -static void reporevlink(char *page, char *name, char *title, char *class, - char *head, char *rev, char *path) +static char *reporevlink(char *page, char *name, char *title, char *class, + char *head, char *rev, char *path) { char *delim; @@ -164,18 +164,6 @@ void cgit_log_link(char *name, char *title, char *class, char *head, reporevlink("log", name, title, class, head, rev, path); } -void cgit_commit_link(char *name, char *title, char *class, char *head, - char *rev) -{ - if (strlen(name) > cgit_max_msg_len && cgit_max_msg_len >= 15) { - name[cgit_max_msg_len] = '\0'; - name[cgit_max_msg_len - 1] = '.'; - name[cgit_max_msg_len - 2] = '.'; - name[cgit_max_msg_len - 3] = '.'; - } - reporevlink("commit", name, title, class, head, rev, NULL); -} - void cgit_print_date(time_t secs, char *format) { char buf[64]; |