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) (unidiff) | |
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
@@ -82,5 +82,5 @@ char *find_default_branch(struct cgit_repo *repo) | |||
82 | } | 82 | } |
83 | 83 | ||
84 | static void cgit_print_repo_page(struct cacheitem *item) | 84 | static void cgit_print_repo_page() |
85 | { | 85 | { |
86 | char *tmp; | 86 | char *tmp; |
@@ -133,5 +133,5 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
133 | 133 | ||
134 | if ((cgit_cmd == CMD_SNAPSHOT) && ctx.repo->snapshots) { | 134 | if ((cgit_cmd == CMD_SNAPSHOT) && ctx.repo->snapshots) { |
135 | cgit_print_snapshot(item, ctx.qry.head, ctx.qry.sha1, | 135 | cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, |
136 | cgit_repobasename(ctx.repo->url), | 136 | cgit_repobasename(ctx.repo->url), |
137 | ctx.qry.path, | 137 | ctx.qry.path, |
@@ -141,10 +141,10 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
141 | 141 | ||
142 | if (cgit_cmd == CMD_PATCH) { | 142 | if (cgit_cmd == CMD_PATCH) { |
143 | cgit_print_patch(ctx.qry.sha1, item); | 143 | cgit_print_patch(ctx.qry.sha1); |
144 | return; | 144 | return; |
145 | } | 145 | } |
146 | 146 | ||
147 | if (cgit_cmd == CMD_BLOB) { | 147 | if (cgit_cmd == CMD_BLOB) { |
148 | cgit_print_blob(item, ctx.qry.sha1, ctx.qry.path); | 148 | cgit_print_blob(ctx.qry.sha1, ctx.qry.path); |
149 | return; | 149 | return; |
150 | } | 150 | } |
@@ -211,7 +211,7 @@ static void cgit_fill_cache(struct cacheitem *item, int use_cache) | |||
211 | ctx.page.expires = ctx.page.modified + ttl_seconds(item->ttl); | 211 | ctx.page.expires = ctx.page.modified + ttl_seconds(item->ttl); |
212 | if (ctx.repo) | 212 | if (ctx.repo) |
213 | cgit_print_repo_page(item); | 213 | cgit_print_repo_page(); |
214 | else | 214 | else |
215 | cgit_print_repolist(item); | 215 | cgit_print_repolist(); |
216 | 216 | ||
217 | if (use_cache) { | 217 | if (use_cache) { |
@@ -279,9 +279,9 @@ extern void cgit_print_branches(int maxcount); | |||
279 | extern void cgit_print_tags(int maxcount); | 279 | extern void cgit_print_tags(int maxcount); |
280 | 280 | ||
281 | extern void cgit_print_repolist(struct cacheitem *item); | 281 | extern void cgit_print_repolist(); |
282 | extern void cgit_print_summary(); | 282 | extern void cgit_print_summary(); |
283 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, | 283 | extern void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, |
284 | char *pattern, char *path, int pager); | 284 | char *pattern, char *path, int pager); |
285 | extern void cgit_print_blob(struct cacheitem *item, const char *hex, char *path); | 285 | extern void cgit_print_blob(const char *hex, char *path); |
286 | extern void cgit_print_tree(const char *rev, char *path); | 286 | extern void cgit_print_tree(const char *rev, char *path); |
287 | extern void cgit_print_commit(char *hex); | 287 | extern void cgit_print_commit(char *hex); |
@@ -289,8 +289,8 @@ extern void cgit_print_refs(); | |||
289 | extern void cgit_print_tag(char *revname); | 289 | extern void cgit_print_tag(char *revname); |
290 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); | 290 | extern void cgit_print_diff(const char *new_hex, const char *old_hex, const char *prefix); |
291 | extern void cgit_print_patch(char *hex, struct cacheitem *item); | 291 | extern void cgit_print_patch(char *hex); |
292 | extern void cgit_print_snapshot(struct cacheitem *item, const char *head, | 292 | extern void cgit_print_snapshot(const char *head, const char *hex, |
293 | const char *hex, const char *prefix, | 293 | const char *prefix, const char *filename, |
294 | const char *filename, int snapshot); | 294 | int snapshot); |
295 | extern void cgit_print_snapshot_links(const char *repo, const char *head, | 295 | extern void cgit_print_snapshot_links(const char *repo, const char *head, |
296 | const char *hex, int snapshots); | 296 | const char *hex, int snapshots); |
@@ -10,5 +10,5 @@ | |||
10 | #include "html.h" | 10 | #include "html.h" |
11 | 11 | ||
12 | void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) | 12 | void cgit_print_blob(const char *hex, char *path) |
13 | { | 13 | { |
14 | 14 | ||
@@ -70,5 +70,5 @@ static void filepair_cb(struct diff_filepair *pair) | |||
70 | } | 70 | } |
71 | 71 | ||
72 | void cgit_print_patch(char *hex, struct cacheitem *item) | 72 | void cgit_print_patch(char *hex) |
73 | { | 73 | { |
74 | struct commit *commit; | 74 | struct commit *commit; |
diff --git a/ui-repolist.c b/ui-repolist.c index e663585..ad9b1bc 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -44,5 +44,5 @@ static void print_modtime(struct cgit_repo *repo) | |||
44 | } | 44 | } |
45 | 45 | ||
46 | void cgit_print_repolist(struct cacheitem *item) | 46 | void cgit_print_repolist() |
47 | { | 47 | { |
48 | int i, columns = 4; | 48 | int i, columns = 4; |
diff --git a/ui-snapshot.c b/ui-snapshot.c index 4449803..c741469 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -70,6 +70,5 @@ static const struct snapshot_archive_t { | |||
70 | #define snapshot_archives_len (sizeof(snapshot_archives) / sizeof(*snapshot_archives)) | 70 | #define snapshot_archives_len (sizeof(snapshot_archives) / sizeof(*snapshot_archives)) |
71 | 71 | ||
72 | void cgit_print_snapshot(struct cacheitem *item, const char *head, | 72 | void cgit_print_snapshot(const char *head, const char *hex, const char *prefix, |
73 | const char *hex, const char *prefix, | ||
74 | const char *filename, int snapshots) | 73 | const char *filename, int snapshots) |
75 | { | 74 | { |