Fix slow .blend file load due to recent accidentally committed debug code.

This commit is contained in:
Brecht Van Lommel
2018-09-03 14:11:55 +02:00
parent cd693955ad
commit c6037b39a1

View File

@@ -340,12 +340,6 @@ static void oldnewmap_insert(OldNewMap *onm, const void *oldaddr, void *newaddr,
if (oldaddr==NULL || newaddr==NULL) return;
for (int i = 0; i < onm->nentries; i++) {
if (onm->entries[i].old == oldaddr && onm->entries[i].newp != newaddr) {
abort();
}
}
if (UNLIKELY(onm->nentries == onm->entriessize)) {
onm->entriessize *= 2;
onm->entries = MEM_reallocN(onm->entries, sizeof(*onm->entries) * onm->entriessize);