Git fork

server-info.c: and two functions are not used anymore.

Signed-off-by: Junio C Hamano <junkio@cox.net>

-33
-33
server-info.c
··· 55 55 static const char *objdir; 56 56 static int objdirlen; 57 57 58 - static struct object *parse_object_cheap(const unsigned char *sha1) 59 - { 60 - struct object *o; 61 - 62 - if ((o = parse_object(sha1)) == NULL) 63 - return NULL; 64 - if (o->type == commit_type) { 65 - struct commit *commit = (struct commit *)o; 66 - free(commit->buffer); 67 - commit->buffer = NULL; 68 - } else if (o->type == tree_type) { 69 - struct tree *tree = (struct tree *)o; 70 - struct tree_entry_list *e, *n; 71 - for (e = tree->entries; e; e = n) { 72 - free(e->name); 73 - e->name = NULL; 74 - n = e->next; 75 - free(e); 76 - } 77 - tree->entries = NULL; 78 - } 79 - return o; 80 - } 81 - 82 58 static struct pack_info *find_pack_by_name(const char *name) 83 59 { 84 60 int i; ··· 88 64 if (!strcmp(p->pack_name + objdirlen + 6, name)) 89 65 return info[i]; 90 66 } 91 - return NULL; 92 - } 93 - 94 - static struct pack_info *find_pack_by_old_num(int old_num) 95 - { 96 - int i; 97 - for (i = 0; i < num_pack; i++) 98 - if (info[i]->old_num == old_num) 99 - return info[i]; 100 67 return NULL; 101 68 } 102 69