Cleanup: Remove unused bmesh_log.hh functions

Pull Request: https://projects.blender.org/blender/blender/pulls/135474
This commit is contained in:
Sean Kim
2025-03-05 22:59:05 +01:00
committed by Sean Kim
parent f96b43cfd4
commit a9a98c9a60
2 changed files with 0 additions and 64 deletions

View File

@@ -536,11 +536,6 @@ void BM_log_free(BMLog *log)
MEM_delete(log);
}
int BM_log_length(const BMLog *log)
{
return BLI_listbase_count(&log->entries);
}
void BM_log_mesh_elems_reorder(BMesh *bm, BMLog *log)
{
BMIter bm_iter;
@@ -877,39 +872,6 @@ const float *BM_log_find_original_vert_mask(BMLog *log, BMVert *v)
return nullptr;
}
const float *BM_log_original_vert_co(BMLog *log, BMVert *v)
{
BMLogEntry *entry = log->current_entry;
BLI_assert(entry);
const uint v_id = bm_log_vert_id_get(log, v);
BLI_assert(entry->modified_verts.contains(v_id));
return entry->modified_verts.lookup(v_id)->position;
}
const float *BM_log_original_vert_no(BMLog *log, BMVert *v)
{
BMLogEntry *entry = log->current_entry;
BLI_assert(entry);
const uint v_id = bm_log_vert_id_get(log, v);
BLI_assert(entry->modified_verts.contains(v_id));
return entry->modified_verts.lookup(v_id)->normal;
}
float BM_log_original_mask(BMLog *log, BMVert *v)
{
BMLogEntry *entry = log->current_entry;
BLI_assert(entry);
const uint v_id = bm_log_vert_id_get(log, v);
BLI_assert(entry->modified_verts.contains(v_id));
return entry->modified_verts.lookup(v_id)->mask;
}
void BM_log_original_vert_data(BMLog *log, BMVert *v, const float **r_co, const float **r_no)
{
BMLogEntry *entry = log->current_entry;

View File

@@ -36,11 +36,6 @@ BMLog *BM_log_from_existing_entries_create(BMesh *bm, BMLogEntry *entry);
*/
void BM_log_free(BMLog *log);
/**
* Get the number of log entries.
*/
int BM_log_length(const BMLog *log);
/** Apply a consistent ordering to BMesh vertices and faces. */
void BM_log_mesh_elems_reorder(BMesh *bm, BMLog *log);
@@ -195,27 +190,6 @@ const float *BM_log_find_original_vert_co(BMLog *log, BMVert *v);
*/
const float *BM_log_find_original_vert_mask(BMLog *log, BMVert *v);
/**
* Get the logged coordinates of a vertex.
*
* Does not modify the log or the vertex.
*/
const float *BM_log_original_vert_co(BMLog *log, BMVert *v);
/**
* Get the logged normal of a vertex
*
* Does not modify the log or the vertex.
*/
const float *BM_log_original_vert_no(BMLog *log, BMVert *v);
/**
* Get the logged mask of a vertex
*
* Does not modify the log or the vertex.
*/
float BM_log_original_mask(BMLog *log, BMVert *v);
/** Get the logged data of a vertex (avoid multiple lookups). */
void BM_log_original_vert_data(BMLog *log, BMVert *v, const float **r_co, const float **r_no);