Cleanup: remove unused function BM_mesh_active_elem_index_get

Getting the active index without knowing the element type
doesn't seem to have any practical use.
This commit is contained in:
Campbell Barton
2024-10-30 15:46:14 +11:00
parent bc02853c29
commit 160e76cd9d
2 changed files with 1 additions and 7 deletions

View File

@@ -856,12 +856,6 @@ int BM_mesh_active_vert_index_get(BMesh *bm)
return v ? BM_elem_index_get(v) : -1;
}
int BM_mesh_active_elem_index_get(BMesh *bm)
{
const BMElem *e = BM_mesh_active_elem_get(bm);
return e ? BM_elem_index_get(e) : -1;
}
BMFace *BM_mesh_active_face_get(BMesh *bm, const bool is_sloppy, const bool is_selected)
{
if (bm->act_face && (!is_selected || BM_elem_flag_test(bm->act_face, BM_ELEM_SELECT))) {

View File

@@ -123,7 +123,7 @@ void BM_mesh_active_face_set(BMesh *bm, BMFace *f);
int BM_mesh_active_face_index_get(BMesh *bm, bool is_sloppy, bool is_selected);
int BM_mesh_active_edge_index_get(BMesh *bm);
int BM_mesh_active_vert_index_get(BMesh *bm);
int BM_mesh_active_elem_index_get(BMesh *bm);
BMFace *BM_mesh_active_face_get(BMesh *bm, bool is_sloppy, bool is_selected);
BMEdge *BM_mesh_active_edge_get(BMesh *bm);
BMVert *BM_mesh_active_vert_get(BMesh *bm);