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 /ui-blob.c | |
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-- | ui-blob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,28 +1,28 @@ | |||
1 | /* ui-blob.c: show blob content | 1 | /* ui-blob.c: show blob content |
2 | * | 2 | * |
3 | * Copyright (C) 2008 Lars Hjemli | 3 | * Copyright (C) 2008 Lars Hjemli |
4 | * | 4 | * |
5 | * Licensed under GNU General Public License v2 | 5 | * Licensed under GNU General Public License v2 |
6 | * (see COPYING for full license text) | 6 | * (see COPYING for full license text) |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
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 | ||
15 | unsigned char sha1[20]; | 15 | unsigned char sha1[20]; |
16 | enum object_type type; | 16 | enum object_type type; |
17 | unsigned char *buf; | 17 | unsigned char *buf; |
18 | unsigned long size; | 18 | unsigned long size; |
19 | 19 | ||
20 | if (get_sha1_hex(hex, sha1)){ | 20 | if (get_sha1_hex(hex, sha1)){ |
21 | cgit_print_error(fmt("Bad hex value: %s", hex)); | 21 | cgit_print_error(fmt("Bad hex value: %s", hex)); |
22 | return; | 22 | return; |
23 | } | 23 | } |
24 | 24 | ||
25 | type = sha1_object_info(sha1, &size); | 25 | type = sha1_object_info(sha1, &size); |
26 | if (type == OBJ_BAD) { | 26 | if (type == OBJ_BAD) { |
27 | cgit_print_error(fmt("Bad object name: %s", hex)); | 27 | cgit_print_error(fmt("Bad object name: %s", hex)); |
28 | return; | 28 | return; |