[Bf-blender-cvs] [7b3858d] wiggly-widgets: Remove unneeded widgetgroup customdata

Julian Eisel noreply at git.blender.org
Wed Sep 16 15:30:04 CEST 2015


Commit: 7b3858dbe429649d53392943f1b38f4b3982ee50
Author: Julian Eisel
Date:   Wed Sep 16 15:29:19 2015 +0200
Branches: wiggly-widgets
https://developer.blender.org/rB7b3858dbe429649d53392943f1b38f4b3982ee50

Remove unneeded widgetgroup customdata

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

M	source/blender/makesdna/DNA_widget_types.h
M	source/blender/windowmanager/intern/wm_widgets.c

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

diff --git a/source/blender/makesdna/DNA_widget_types.h b/source/blender/makesdna/DNA_widget_types.h
index 6d9c5c0..5fa2cd8 100644
--- a/source/blender/makesdna/DNA_widget_types.h
+++ b/source/blender/makesdna/DNA_widget_types.h
@@ -55,8 +55,6 @@ struct wmWidgetGroup {
 
 	int flag;
 	int pad;
-
-	void *customdata;
 };
 
 #endif
diff --git a/source/blender/windowmanager/intern/wm_widgets.c b/source/blender/windowmanager/intern/wm_widgets.c
index 9ff2c3f..616a596 100644
--- a/source/blender/windowmanager/intern/wm_widgets.c
+++ b/source/blender/windowmanager/intern/wm_widgets.c
@@ -175,16 +175,6 @@ wmWidget *WM_widget_new(void (*draw)(const bContext *C, wmWidget *customdata),
 	return widget;
 }
 
-void WM_widgetgroup_customdata_set(wmWidgetGroup *wgroup, void *data)
-{
-	wgroup->customdata = data;
-}
-
-void *WM_widgetgroup_customdata(const wmWidgetGroup *wgroup)
-{
-	return wgroup->customdata;
-}
-
 
 static void wm_widget_delete(ListBase *widgetlist, wmWidget *widget)
 {




More information about the Bf-blender-cvs mailing list