diff options
Diffstat (limited to 'pack-objects.c')
-rw-r--r-- | pack-objects.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pack-objects.c b/pack-objects.c index 18f8f82571..09f4f2c944 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -8,8 +8,6 @@ #include "pack.h" #include "csum-file.h" #include "tree-walk.h" -#include "rabinpoly.h" -#include "gsimm.h" #include <sys/time.h> #include <signal.h> @@ -995,7 +993,6 @@ static int type_size_sort(const struct object_entry *a, const struct object_entr struct unpacked { struct object_entry *entry; - unsigned char fingerprint[MD_LENGTH]; void *data; }; @@ -1044,9 +1041,6 @@ static int try_delta(struct unpacked *cur, struct unpacked *old, unsigned max_de if (old_entry->depth >= max_depth) return 0; - if (gb_simm_score(cur->fingerprint, old->fingerprint) < 0.4) - return 0; - /* * NOTE! * @@ -1083,7 +1077,6 @@ static void find_deltas(struct object_entry **list, int window, int depth) unsigned processed = 0; unsigned last_percent = 999; - rabin_reset (); memset(array, 0, array_size); i = nr_objects; idx = 0; @@ -1122,8 +1115,6 @@ static void find_deltas(struct object_entry **list, int window, int depth) if (size != entry->size) die("object %s inconsistent object length (%lu vs %lu)", sha1_to_hex(entry->sha1), size, entry->size); - gb_simm_process(n->data, size, n->fingerprint); - j = window; while (--j > 0) { unsigned int other_idx = idx + j; @@ -1133,7 +1124,6 @@ static void find_deltas(struct object_entry **list, int window, int depth) m = array + other_idx; if (!m->entry) break; - if (try_delta(n, m, depth) < 0) break; } |