Cleanup: unused args

This commit is contained in:
Campbell Barton 2018-12-04 10:39:03 +11:00
parent c631782542
commit 1b6a394d86
Notes: blender-bot 2023-02-14 05:01:20 +01:00
Referenced by issue #59092, Setting Dynamic Paint brush as particle crashes when selecting a particle system
Referenced by issue #59072, Blender 2.8 Beta: Text extrusion cannot be animated
Referenced by issue #59024, Grease Pencil geometric shapes won't wrap onto a surface
Referenced by issue #59018, When left select is set in preferences, the loop select does not work with the left mouse button
Referenced by issue #58970, Cage baking it is not working on Blender 2.8. Same process and objects it is working in Blender 2.79
Referenced by issue #58769, macOS: Red Lines in User Interface
Referenced by issue #58709, Slowdown FPS with subsurf in last daily build (4th December)
Referenced by issue #58690, Display overlays button does not hide bones
Referenced by issue #58683, Toolbar buttons change color and icons become off-centered after using the Reload Scripts operator
2 changed files with 4 additions and 4 deletions

View File

@ -308,7 +308,7 @@ static void gp_primitive_arc(tGPDprimitive *tgpi, tGPspoint *points2D)
SWAP(int, end[0], start[0]);
SWAP(int, end[1], start[1]);
}
length[0] = end[0] - start[0];
length[1] = end[1] - start[1];
@ -487,7 +487,7 @@ static void gpencil_primitive_exit(bContext *C, wmOperator *op)
}
/* Init new temporary primitive data */
static void gpencil_primitive_init(bContext *C, wmOperator *op, const wmEvent *event)
static void gpencil_primitive_init(bContext *C, wmOperator *op)
{
ToolSettings *ts = CTX_data_tool_settings(C);
bGPdata *gpd = CTX_data_gpencil_data(C);
@ -555,7 +555,7 @@ static int gpencil_primitive_invoke(bContext *C, wmOperator *op, const wmEvent *
tGPDprimitive *tgpi = NULL;
/* initialize operator runtime data */
gpencil_primitive_init(C, op, event);
gpencil_primitive_init(C, op);
tgpi = op->customdata;
const bool is_modal = RNA_boolean_get(op->ptr, "wait_for_input");

View File

@ -1760,7 +1760,7 @@ static bool helpline_poll(bContext *C)
return 0;
}
static void drawHelpline(bContext *C, int x, int y, void *customdata)
static void drawHelpline(bContext *UNUSED(C), int x, int y, void *customdata)
{
TransInfo *t = (TransInfo *)customdata;