[Bf-blender-cvs] [240fb4d8d10] modifier-panels-ui: Remove unused variables and leftover comments
Hans Goudey
noreply at git.blender.org
Mon Apr 6 05:02:24 CEST 2020
Commit: 240fb4d8d10dada12f397c21347f9be0637a6d62
Author: Hans Goudey
Date: Sun Apr 5 21:33:31 2020 -0500
Branches: modifier-panels-ui
https://developer.blender.org/rB240fb4d8d10dada12f397c21347f9be0637a6d62
Remove unused variables and leftover comments
===================================================================
M source/blender/editors/interface/interface_templates.c
M source/blender/modifiers/intern/MOD_smooth.c
M source/blender/modifiers/intern/MOD_warp.c
===================================================================
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 4df6abf9b6f..c42df12b80a 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -1814,55 +1814,6 @@ void uiTemplatePathBuilder(uiLayout *layout,
#define ERROR_LIBDATA_MESSAGE TIP_("Can't edit external library data")
-// static void modifiers_convertToReal(bContext *C, void *ob_v, void *md_v)
-// {
-// Object *ob = ob_v;
-// ModifierData *md = md_v;
-// ModifierData *nmd = modifier_new(md->type);
-
-// modifier_copyData(md, nmd);
-// nmd->mode &= ~eModifierMode_Virtual;
-
-// BLI_addhead(&ob->modifiers, nmd);
-
-// modifier_unique_name(&ob->modifiers, nmd);
-
-// ob->partype = PAROBJECT;
-
-// WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob);
-// DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
-
-// ED_undo_push(C, "Modifier convert to real");
-// }
-
-// static void draw_modifier(uiLayout *layout,
-// bContext *C,
-// Scene *scene,
-// Object *ob,
-// ModifierData *md,
-// int index,
-// int cageIndex,
-// int lastCageIndex)
-// {
-// const ModifierTypeInfo *mti = modifierType_getInfo(md->type);
-// PointerRNA ptr;
-// uiBut *but;
-// uiBlock *block;
-// uiLayout *column, *row, *sub;
-// int is_virtual = (md->mode & eModifierMode_Virtual);
-// char str[128];
-
-// /* create RNA pointer */
-// RNA_pointer_create(&ob->id, &RNA_Modifier, md, &ptr);
-
-// column = uiLayoutColumn(layout, true);
-// uiLayoutSetContextPointer(column, "modifier", &ptr);
-
-// UI_block_align_end(block);
-
-// /* Switch context button. */
-// uiItemS(column);
-
static PanelType *panel_type_from_modifier_type(ARegion *region, ModifierType type)
{
ARegionType *region_type = region->type;
diff --git a/source/blender/modifiers/intern/MOD_smooth.c b/source/blender/modifiers/intern/MOD_smooth.c
index 29f8bd4818f..7244cc7fc6f 100644
--- a/source/blender/modifiers/intern/MOD_smooth.c
+++ b/source/blender/modifiers/intern/MOD_smooth.c
@@ -255,7 +255,6 @@ static void panel_draw(const bContext *C, Panel *panel)
uiItemL(row, IFACE_("Axis"), ICON_NONE);
row = uiLayoutRow(split, true);
uiLayoutSetPropSep(row, false);
- PropertyRNA *prop = RNA_struct_find_property(&ptr, "use_axis");
uiItemR(row, &ptr, "use_x", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
uiItemR(row, &ptr, "use_y", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
uiItemR(row, &ptr, "use_z", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c
index 868873f0763..d0ff7e88ec7 100644
--- a/source/blender/modifiers/intern/MOD_warp.c
+++ b/source/blender/modifiers/intern/MOD_warp.c
@@ -402,7 +402,7 @@ static void deformVertsEM(ModifierData *md,
static void panel_draw(const bContext *C, Panel *panel)
{
- uiLayout *sub, *row, *col, *split;
+ uiLayout *sub, *row, *col;
uiLayout *layout = panel->layout;
PointerRNA ptr;
More information about the Bf-blender-cvs
mailing list