Removing SWAP macro define from BLI_heap.c, already present in BLI_utildefines.h, giving compile error.

This commit is contained in:
Bastien Montagne 2012-03-12 09:20:38 +00:00
parent e3df2697c3
commit 51c553befb

@ -54,8 +54,6 @@ struct Heap {
HeapNode **tree;
};
#define SWAP(type, a, b) \
{ type sw_ap; sw_ap = (a); (a) = (b); (b) = sw_ap; }
#define HEAP_PARENT(i) ((i - 1) >> 1)
#define HEAP_LEFT(i) ((i << 1) + 1)
#define HEAP_RIGHT(i) ((i << 1) + 2)