author | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 00:00:36 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 00:01:28 (UTC) |
commit | b608e88adb6f77328288afb6dd0eddf674fc9b5b (patch) (side-by-side diff) | |
tree | e194a466ba00d67bc037c76329ca050e84e1223b | |
parent | f3c1a187fe2bc33f8423cd535d5045899699995b (diff) | |
download | cgit-b608e88adb6f77328288afb6dd0eddf674fc9b5b.zip cgit-b608e88adb6f77328288afb6dd0eddf674fc9b5b.tar.gz cgit-b608e88adb6f77328288afb6dd0eddf674fc9b5b.tar.bz2 |
Remove obsolete cacheitem parameter to ui-functions
This parameter hasn't been used for a very long time...
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.c | 12 | ||||
-rw-r--r-- | cgit.h | 12 | ||||
-rw-r--r-- | ui-blob.c | 2 | ||||
-rw-r--r-- | ui-patch.c | 2 | ||||
-rw-r--r-- | ui-repolist.c | 2 | ||||
-rw-r--r-- | ui-snapshot.c | 3 |
6 files changed, 16 insertions, 17 deletions
@@ -83,3 +83,3 @@ char *find_default_branch(struct cgit_repo *repo) -static void cgit_print_repo_page(struct cacheitem *item) +static void cgit_print_repo_page() { @@ -134,3 +134,3 @@ static void cgit_print_repo_page(struct cacheitem *item) if ((cgit_cmd == CMD_SNAPSHOT) && ctx.repo->snapshots) { - cgit_print_snapshot(item, ctx.qry.head, ctx.qry.sha1, + cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, cgit_repobasename(ctx.repo->url), @@ -142,3 +142,3 @@ static void cgit_print_repo_page(struct cacheitem *item) if (cgit_cmd == CMD_PATCH) { - cgit_print_patch(ctx.qry.sha1, item); + cgit_print_patch(ctx.qry.sha1); return; @@ -147,3 +147,3 @@ static void cgit_print_repo_page(struct cacheitem *item) if (cgit_cmd == CMD_BLOB) { - cgit_print_blob(item, ctx.qry.sha1, ctx.qry.path); + cgit_print_blob(ctx.qry.sha1, ctx.qry.path); return; @@ -212,5 +212,5 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache) if (ctx.repo) - cgit_print_repo_page(item); + cgit_print_repo_page(); else - cgit_print_repolist(item); + cgit_print_repolist(); @@ -280,3 +280,3 @@ extern void cgit_print_tags(int maxcount); -extern void cgit_print_repolist(struct cacheitem *item); +extern void cgit_print_repolist(); extern void cgit_print_summary(); @@ -284,3 +284,3 @@ extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern, char *path, int pager); -extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); +extern void cgit_print_blob(const char *hex, char *path); extern void cgit_print_tree(const char *rev, char *path); @@ -290,6 +290,6 @@ extern void cgit_print_tag(char *revname); extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); -extern void cgit_print_patch(char *hex, struct cacheitem *item); -extern void cgit_print_snapshot(struct cacheitem *item, const char *head, - const char *hex, const char *prefix, - const char *filename, int snapshot); +extern void cgit_print_patch(char *hex); +extern void cgit_print_snapshot(const char *head, const char *hex, + const char *prefix, const char *filename, + int snapshot); extern void cgit_print_snapshot_links(const char *repo, const char *head, @@ -11,3 +11,3 @@ -void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) +void cgit_print_blob(const char *hex, char *path) { @@ -71,3 +71,3 @@ static void filepair_cb(struct diff_filepair *pair) -void cgit_print_patch(char *hex, struct cacheitem *item) +void cgit_print_patch(char *hex) { diff --git a/ui-repolist.c b/ui-repolist.c index e663585..ad9b1bc 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -45,3 +45,3 @@ static void print_modtime(struct cgit_repo *repo) -void cgit_print_repolist(struct cacheitem *item) +void cgit_print_repolist() { diff --git a/ui-snapshot.c b/ui-snapshot.c index 4449803..c741469 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -71,4 +71,3 @@ static const struct snapshot_archive_t { -void cgit_print_snapshot(struct cacheitem *item, const char *head, - const char *hex, const char *prefix, +void cgit_print_snapshot(const char *head, const char *hex, const char *prefix, const char *filename, int snapshots) |