[Bf-blender-cvs] [cb1f462] temp_widgets_c++_experiment: Cleanup: Unused function

Julian Eisel noreply at git.blender.org
Sat Dec 19 16:14:53 CET 2015


Commit: cb1f462ae008f0d457d586ecbf9fe4c87c632102
Author: Julian Eisel
Date:   Sat Dec 19 16:14:24 2015 +0100
Branches: temp_widgets_c++_experiment
https://developer.blender.org/rBcb1f462ae008f0d457d586ecbf9fe4c87c632102

Cleanup: Unused function

===================================================================

M	source/blender/windowmanager/intern/wm_widgets.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_widgets.c b/source/blender/windowmanager/intern/wm_widgets.c
index 5079126..81ab0ad 100644
--- a/source/blender/windowmanager/intern/wm_widgets.c
+++ b/source/blender/windowmanager/intern/wm_widgets.c
@@ -1307,37 +1307,6 @@ void WM_widgetmap_delete(wmWidgetMap *wmap)
 	MEM_freeN(wmap);
 }
 
-static void wm_widgetgroup_free(bContext *C, wmWidgetMap *wmap, wmWidgetGroup *wgroup)
-{
-	for (wmWidget *widget = wgroup->widgets.first; widget;) {
-		wmWidget *widget_next = widget->next;
-		if (widget->flag & WM_WIDGET_HIGHLIGHT) {
-			wm_widgetmap_set_highlighted_widget(wmap, C, NULL, 0);
-		}
-		if (widget->flag & WM_WIDGET_ACTIVE) {
-			wm_widgetmap_set_active_widget(wmap, C, NULL, NULL);
-		}
-		wm_widget_delete(&wgroup->widgets, widget);
-		widget = widget_next;
-	}
-
-#ifdef WITH_PYTHON
-	if (wgroup->py_instance) {
-		/* do this first in case there are any __del__ functions or
-		 * similar that use properties */
-		BPY_DECREF_RNA_INVALIDATE(wgroup->py_instance);
-	}
-#endif
-
-	if (wgroup->reports && (wgroup->reports->flag & RPT_FREE)) {
-		BKE_reports_clear(wgroup->reports);
-		MEM_freeN(wgroup->reports);
-	}
-
-	BLI_remlink(&wmap->widgetgroups, wgroup);
-	MEM_freeN(wgroup);
-}
-
 static wmKeyMap *widgetgroup_tweak_modal_keymap(wmKeyConfig *keyconf, const char *wgroupname)
 {
 	wmKeyMap *keymap;




More information about the Bf-blender-cvs mailing list