Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-28 06:17:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-28 06:17:53 +0300
commitea5664c0d17b8faa0385e9a46da4cd279e42d678 (patch)
treede209ed86c32a78e9f0d0ebb555655d03d07e6a2 /source/blender/editors
parent3919c46a09aa243815e1c2306991ab880448ee71 (diff)
remove unused vars.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_action/action_select.c4
-rw-r--r--source/blender/editors/space_graph/graph_select.c4
-rw-r--r--source/blender/editors/space_info/info_ops.c4
-rw-r--r--source/blender/editors/space_logic/logic_window.c4
4 files changed, 2 insertions, 14 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c
index c93b69a56f7..7f5abbd210f 100644
--- a/source/blender/editors/space_action/action_select.c
+++ b/source/blender/editors/space_action/action_select.c
@@ -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);
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index e6cde27c383..2cc4bb81bf3 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -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);
diff --git a/source/blender/editors/space_info/info_ops.c b/source/blender/editors/space_info/info_ops.c
index 291708fd4af..5d3f3314bd9 100644
--- a/source/blender/editors/space_info/info_ops.c
+++ b/source/blender/editors/space_info/info_ops.c
@@ -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);
diff --git a/source/blender/editors/space_logic/logic_window.c b/source/blender/editors/space_logic/logic_window.c
index 63ae486006b..ebe215d6459 100644
--- a/source/blender/editors/space_logic/logic_window.c
+++ b/source/blender/editors/space_logic/logic_window.c
@@ -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;