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:
authorHans Goudey <h.goudey@me.com>2021-06-07 21:12:06 +0300
committerHans Goudey <h.goudey@me.com>2021-06-07 21:12:06 +0300
commit1182c269787dd73a20ef5c524325ff60918bb02d (patch)
treed3b8b151f3db6fc8ae65ee77000755ffda75099b /source/blender/blenkernel/intern/displist.cc
parent8cbff7093d658661e8f8f242552a4de95a9fbc64 (diff)
Cleanup: Remove unused function, make function private
Diffstat (limited to 'source/blender/blenkernel/intern/displist.cc')
-rw-r--r--source/blender/blenkernel/intern/displist.cc19
1 files changed, 2 insertions, 17 deletions
diff --git a/source/blender/blenkernel/intern/displist.cc b/source/blender/blenkernel/intern/displist.cc
index 8200dc82dbc..f9536f11227 100644
--- a/source/blender/blenkernel/intern/displist.cc
+++ b/source/blender/blenkernel/intern/displist.cc
@@ -65,7 +65,7 @@ using blender::IndexRange;
static void boundbox_displist_object(Object *ob);
-void BKE_displist_elem_free(DispList *dl)
+static void displist_elem_free(DispList *dl)
{
if (dl) {
if (dl->verts) {
@@ -86,25 +86,10 @@ void BKE_displist_free(ListBase *lb)
DispList *dl;
while ((dl = (DispList *)BLI_pophead(lb))) {
- BKE_displist_elem_free(dl);
+ displist_elem_free(dl);
}
}
-DispList *BKE_displist_find_or_create(ListBase *lb, int type)
-{
- LISTBASE_FOREACH (DispList *, dl, lb) {
- if (dl->type == type) {
- return dl;
- }
- }
-
- DispList *dl = (DispList *)MEM_callocN(sizeof(DispList), "find_disp");
- dl->type = type;
- BLI_addtail(lb, dl);
-
- return dl;
-}
-
DispList *BKE_displist_find(ListBase *lb, int type)
{
LISTBASE_FOREACH (DispList *, dl, lb) {