@matheusbsbs / matheus-bagliano / commits / 9cebe90bc5
Fork 0

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

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

Junio C Hamano committed Dec 5, 2005 at 11:12 UTC 9cebe90bc55c76638f5cb8132d9fbd2769e05e54
1 file changed -33
server-info.c
-33
@@ -55,30 +55,6 @@ static int num_pack;
55 static const char *objdir;
56 static int objdirlen;
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 -
58 static struct pack_info *find_pack_by_name(const char *name)
59 {
60 int i;
@@ -91,15 +67,6 @@ static struct pack_info *find_pack_by_name(const char *name)
67 return NULL;
68 }
69
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 - return NULL;
101 -}
102 -
70 /* Returns non-zero when we detect that the info in the
71 * old file is useless.
72 */