From 51c553befba6799b47df14902b93c652275cebee Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 12 Mar 2012 09:20:38 +0000 Subject: [PATCH] Removing SWAP macro define from BLI_heap.c, already present in BLI_utildefines.h, giving compile error. --- source/blender/blenlib/intern/BLI_heap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c index ea22ed0c4da..fa7b91b8539 100644 --- a/source/blender/blenlib/intern/BLI_heap.c +++ b/source/blender/blenlib/intern/BLI_heap.c @@ -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)