From 21744217cea9bb8f767f47cb6c41446563e645ac Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 17 Oct 2018 12:43:41 +0200 Subject: Cleanup: remove some #if 0 blocks Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D3802 --- source/blender/blenkernel/intern/editmesh.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'source/blender/blenkernel/intern/editmesh.c') diff --git a/source/blender/blenkernel/intern/editmesh.c b/source/blender/blenkernel/intern/editmesh.c index 7e3693987f7..11f3594da04 100644 --- a/source/blender/blenkernel/intern/editmesh.c +++ b/source/blender/blenkernel/intern/editmesh.c @@ -115,18 +115,6 @@ static void editmesh_tessface_calc_intern(BMEditMesh *em) BMLoop *(*looptris)[3]; -#if 0 - /* note, we could be clever and re-use this array but would need to ensure - * its realloced at some point, for now just free it */ - if (em->looptris) MEM_freeN(em->looptris); - - /* Use em->tottri when set, this means no reallocs while transforming, - * (unless scanfill fails), otherwise... */ - /* allocate the length of totfaces, avoid many small reallocs, - * if all faces are tri's it will be correct, quads == 2x allocs */ - BLI_array_reserve(looptris, (em->tottri && em->tottri < bm->totface * 3) ? em->tottri : bm->totface); -#else - /* this means no reallocs for quad dominant models, for */ if ((em->looptris != NULL) && /* (*em->tottri >= looptris_tot)) */ @@ -140,8 +128,6 @@ static void editmesh_tessface_calc_intern(BMEditMesh *em) looptris = MEM_mallocN(sizeof(*looptris) * looptris_tot, __func__); } -#endif - em->looptris = looptris; /* after allocating the em->looptris, we're ready to tessellate */ -- cgit v1.2.3