remove unused vars.

This commit is contained in:
Campbell Barton
2011-02-28 03:17:53 +00:00
parent 3919c46a09
commit ea5664c0d1
4 changed files with 2 additions and 14 deletions

View File

@@ -1157,9 +1157,7 @@ static void mouse_action_keys (bAnimContext *ac, int mval[2], short select_mode,
static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *event)
{
bAnimContext ac;
Scene *scene;
ARegion *ar;
View2D *v2d;
short selectmode, column;
int mval[2];
@@ -1168,9 +1166,7 @@ static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *even
return OPERATOR_CANCELLED;
/* get useful pointers from animation context data */
scene= ac.scene;
ar= ac.ar;
v2d= &ar->v2d;
/* get mouse coordinates (in region coordinates) */
mval[0]= (event->x - ar->winrct.xmin);

View File

@@ -1299,9 +1299,7 @@ static void graphkeys_mselect_column (bAnimContext *ac, int mval[2], short selec
static int graphkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *event)
{
bAnimContext ac;
Scene *scene;
ARegion *ar;
View2D *v2d;
short selectmode;
int mval[2];
@@ -1310,9 +1308,7 @@ static int graphkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *ev
return OPERATOR_CANCELLED;
/* get useful pointers from animation context data */
scene= ac.scene;
ar= ac.ar;
v2d= &ar->v2d;
/* get mouse coordinates (in region coordinates) */
mval[0]= (event->x - ar->winrct.xmin);

View File

@@ -257,10 +257,6 @@ void FILE_OT_make_paths_absolute(wmOperatorType *ot)
static int report_missing_files_exec(bContext *UNUSED(C), wmOperator *op)
{
char txtname[24]; /* text block name */
txtname[0] = '\0';
/* run the missing file check */
checkMissingFiles(G.main, op->reports);

View File

@@ -3183,9 +3183,9 @@ static uiBlock *object_state_mask_menu(bContext *C, ARegion *ar, void *arg_obj)
static int is_sensor_linked(uiBlock *block, bSensor *sens)
{
bController *cont;
int i, count;
int i;
for (count=0, i=0; i<sens->totlinks; i++) {
for (i=0; i<sens->totlinks; i++) {
cont = sens->links[i];
if (uiFindInlink(block, cont) != NULL)
return 1;