Cleanup: remove unused bmesh iterator
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 Nov 2015 05:08:40 +0000 (16:08 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 Nov 2015 11:13:35 +0000 (22:13 +1100)
source/blender/bmesh/intern/bmesh_iterators.c
source/blender/bmesh/intern/bmesh_iterators.h
source/blender/python/bmesh/bmesh_py_types.c

index 0abf41709a0f6ecbc9341c12979b8975f0cf60b6..4014d29966a240a67a910d1711095b05dab2a790 100644 (file)
@@ -48,7 +48,6 @@ const char bm_iter_itype_htype_map[BM_ITYPE_MAX] = {
        BM_VERT, /* BM_VERTS_OF_FACE */
        BM_EDGE, /* BM_EDGES_OF_FACE */
        BM_LOOP, /* BM_LOOPS_OF_FACE */
        BM_VERT, /* BM_VERTS_OF_FACE */
        BM_EDGE, /* BM_EDGES_OF_FACE */
        BM_LOOP, /* BM_LOOPS_OF_FACE */
-       BM_LOOP, /* BM_ALL_LOOPS_OF_FACE */
        BM_LOOP, /* BM_LOOPS_OF_LOOP */
        BM_LOOP  /* BM_LOOPS_OF_EDGE */
 };
        BM_LOOP, /* BM_LOOPS_OF_LOOP */
        BM_LOOP  /* BM_LOOPS_OF_EDGE */
 };
index c4b184ef8b85c22ec295e0d60f9842a94a2e0966..336e9d88dea41e2f2d38901a39ede05a560e8fbf 100644 (file)
@@ -70,15 +70,15 @@ typedef enum BMIterType {
        /* returns elements from all boundaries, and returns
         * the first element at the end to flag that we're entering
         * a different face hole boundary*/
        /* returns elements from all boundaries, and returns
         * the first element at the end to flag that we're entering
         * a different face hole boundary*/
-       BM_ALL_LOOPS_OF_FACE = 12,
+       // BM_ALL_LOOPS_OF_FACE = 12,
        /* iterate through loops around this loop, which are fetched
         * from the other faces in the radial cycle surrounding the
         * input loop's edge.*/
        /* iterate through loops around this loop, which are fetched
         * from the other faces in the radial cycle surrounding the
         * input loop's edge.*/
-       BM_LOOPS_OF_LOOP = 13,
-       BM_LOOPS_OF_EDGE = 14
+       BM_LOOPS_OF_LOOP = 12,
+       BM_LOOPS_OF_EDGE = 13
 } BMIterType;
 
 } BMIterType;
 
-#define BM_ITYPE_MAX 15
+#define BM_ITYPE_MAX 14
 
 /* the iterator htype for each iterator */
 extern const char bm_iter_itype_htype_map[BM_ITYPE_MAX];
 
 /* the iterator htype for each iterator */
 extern const char bm_iter_itype_htype_map[BM_ITYPE_MAX];
index bf773d3d9c37a03fba0269a0e7543ee49603fdd1..fc25a79f77a91581ee1cfc1f53118f604c86d29d 100644 (file)
@@ -2789,7 +2789,7 @@ static PyTypeObject *bpy_bm_itype_as_pytype(const char itype)
                case BM_FACES_OF_VERT:
                        return &BPy_BMFace_Type;
 
                case BM_FACES_OF_VERT:
                        return &BPy_BMFace_Type;
 
-               case BM_ALL_LOOPS_OF_FACE:
+               // case BM_ALL_LOOPS_OF_FACE:
                case BM_LOOPS_OF_FACE:
                case BM_LOOPS_OF_EDGE:
                case BM_LOOPS_OF_VERT:
                case BM_LOOPS_OF_FACE:
                case BM_LOOPS_OF_EDGE:
                case BM_LOOPS_OF_VERT: