From 4745d01c164a96aaf0135d9c46f9ba2f47accb01 Mon Sep 17 00:00:00 2001 From: Ben Batt Date: Tue, 29 Aug 2006 12:49:49 +0000 Subject: [PATCH] Disabled some unused debugging functions that were causing unnecessary compile warnings. --- source/blender/blenkernel/intern/modifier.c | 6 ++++++ source/blender/src/buttons_editing.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index 37a2a9cac0e..a6bb5e8705f 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -1369,6 +1369,7 @@ static void smoothmesh_free(SmoothMesh *mesh) MEM_freeN(mesh); } +#ifdef EDGESPLIT_DEBUG_0 static void smoothmesh_print(SmoothMesh *mesh) { int i, j; @@ -1429,6 +1430,7 @@ static void smoothmesh_print(SmoothMesh *mesh) printf("}\n"); } } +#endif static SmoothMesh *smoothmesh_from_derivedmesh(DerivedMesh *dm) { @@ -1659,6 +1661,7 @@ static void linklist_append_list_unique(LinkNode **target, LinkNode *source) linklist_append_unique(target, source->link); } +#if 0 /* this is no longer used, it should possibly be removed */ /* prepends prepend to list - doesn't copy nodes, just joins the lists */ static void linklist_prepend_linklist(LinkNode **list, LinkNode *prepend) { @@ -1670,6 +1673,7 @@ static void linklist_prepend_linklist(LinkNode **list, LinkNode *prepend) *list = prepend; } } +#endif /* empties the linked list * frees pointers with freefunc if freefunc is not NULL @@ -1715,6 +1719,7 @@ static void linklist_remove_list(LinkNode **target, LinkNode *source, linklist_remove_first(target, source->link, freefunc); } +#ifdef EDGESPLIT_DEBUG_0 static void print_ptr(void *ptr) { printf("%p\n", ptr); @@ -1731,6 +1736,7 @@ static void print_face(void *ptr) SmoothFace *face = ptr; printf(" %4d", face->newIndex); } +#endif typedef struct ReplaceData { void *find; diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c index 613edc4e24d..576ed14af1d 100644 --- a/source/blender/src/buttons_editing.c +++ b/source/blender/src/buttons_editing.c @@ -979,6 +979,7 @@ static void modifier_testTexture(char *name, ID **idpp) *idpp = 0; } +#if 0 /* this is currently unused, but could be useful in the future */ static void modifier_testMaterial(char *name, ID **idpp) { ID *id; @@ -991,6 +992,7 @@ static void modifier_testMaterial(char *name, ID **idpp) } *idpp = 0; } +#endif static void modifier_testImage(char *name, ID **idpp) {