summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-05 19:12:01 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-05 19:12:01 (GMT)
commit9cebe90bc55c76638f5cb8132d9fbd2769e05e54 (patch)
treebb0d319693e8593f33eb71f4d6ca640f0010c579 /server-info.c
parentf13d7db4af3bbf611990d63643b34c4e546b127c (diff)
downloadgit-9cebe90bc55c76638f5cb8132d9fbd2769e05e54.zip
git-9cebe90bc55c76638f5cb8132d9fbd2769e05e54.tar.gz
git-9cebe90bc55c76638f5cb8132d9fbd2769e05e54.tar.bz2
server-info.c: and two functions are not used anymore.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/server-info.c b/server-info.c
index 7b214c8..7d7bcb2 100644
--- a/server-info.c
+++ b/server-info.c
@@ -55,30 +55,6 @@ static int num_pack;
static const char *objdir;
static int objdirlen;
-static struct object *parse_object_cheap(const unsigned char *sha1)
-{
- struct object *o;
-
- if ((o = parse_object(sha1)) == NULL)
- return NULL;
- if (o->type == commit_type) {
- struct commit *commit = (struct commit *)o;
- free(commit->buffer);
- commit->buffer = NULL;
- } else if (o->type == tree_type) {
- struct tree *tree = (struct tree *)o;
- struct tree_entry_list *e, *n;
- for (e = tree->entries; e; e = n) {
- free(e->name);
- e->name = NULL;
- n = e->next;
- free(e);
- }
- tree->entries = NULL;
- }
- return o;
-}
-
static struct pack_info *find_pack_by_name(const char *name)
{
int i;
@@ -91,15 +67,6 @@ static struct pack_info *find_pack_by_name(const char *name)
return NULL;
}
-static struct pack_info *find_pack_by_old_num(int old_num)
-{
- int i;
- for (i = 0; i < num_pack; i++)
- if (info[i]->old_num == old_num)
- return info[i];
- return NULL;
-}
-
/* Returns non-zero when we detect that the info in the
* old file is useless.
*/