Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-16 14:29:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-16 14:29:59 +0400
commitbd613739ae4ebfa97471c34cfa4077f3c3e18afc (patch)
treeb9cda7fc71a449ff38e204aa5540ac2ea2d8b7e0 /source/blender/editors
parent0150e01993636cf967b757b5493d525abb16502c (diff)
bmesh todo: remove unused code.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c13
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c5
2 files changed, 1 insertions, 17 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 29aab453822..00835b79593 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -1221,9 +1221,7 @@ static int edgetag_shortest_path(Scene *scene, BMEditMesh *em, BMEdge *source, B
/* note, would pass BM_EDGE except we are looping over all edges anyway */
BM_mesh_elem_index_ensure(em->bm, BM_VERT /* | BM_EDGE */);
- BM_ITER(e, &iter, em->bm, BM_EDGES_OF_MESH, NULL)
- {
- e->oflags[0].f = 0; /* XXX, whats this for, BMESH_TODO, double check if this is needed */
+ BM_ITER(e, &iter, em->bm, BM_EDGES_OF_MESH, NULL) {
if (BM_elem_flag_test(e, BM_ELEM_HIDDEN)) {
BLI_smallhash_insert(&visithash, (uintptr_t)e, NULL);
}
@@ -1277,15 +1275,6 @@ static int edgetag_shortest_path(Scene *scene, BMEditMesh *em, BMEdge *source, B
* by the shortest path found so far to the edge.
*/
-#if 0 /* UNUSED */ /* this block does nothing, not sure why its here? - campbell */
- for (i = 0; i < totvert; i++) {
- int start = nedges[i], end = nedges[i + 1], cur;
- for (cur = start; cur < end; cur++) {
- BMEdge *e = EDBM_edge_at_index(em, edges[cur]);
- }
- }
-#endif
-
/* regular dijkstra shortest path, but over edges instead of vertices */
heap = BLI_heap_new();
BLI_heap_insert(heap, 0.0f, SET_INT_IN_POINTER(BM_elem_index_get(source)));
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 7a142f3a46e..7e7e3bcfbfe 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -2355,11 +2355,6 @@ static void uv_faces_do_sticky(bContext *C, SpaceImage *sima, Scene *scene, Obje
vmap = EDBM_uv_vert_map_create(em, 0, 0, limit);
/* verts are numbered above in make_uv_vert_map_EM, make sure this stays true! */
- /* BMESH_TODO - why keep this commented? - campbell */
-#if 0
- for (a = 0, eve = em->verts.first; eve; a++, eve = eve->next)
- eve->tmp.l = a;
-#endif
if (vmap == NULL) {
return;
}