Commit Diff


commit - 64ab72383b1b73842575e2052cb542c0b5fd1345
commit + b4152680fa1d9df8c1eedec06bab56f638e42834
blob - 44c7e0d35a700f45daed13f4493dfa603f97a834
blob + 5086b21ee286ee026ca3e242469249be3b075ef0
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
@@ -244,19 +244,7 @@ object_crc(int packfd, struct got_indexed_object *obj)
 		obj->crc = crc32(obj->crc, buf, r);
 	}
 	return 0;
-}
-
-#if 0
-static int
-indexed_obj_cmp(const void *pa, const void *pb)
-{
-	struct got_indexed_object *a, *b;
-
-	a = *(struct got_indexed_object **)pa;
-	b = *(struct got_indexed_object **)pb;
-	return got_object_id_cmp(&a->id, &b->id);
 }
-#endif
 
 static const struct got_error *
 resolve_deltified_object(struct got_pack *pack, struct got_packidx *packidx,