small edits to text editor from writing a python editor extension.
[blender.git] / source / blender / editors / space_image / image_ops.c
index fc1a5f345aefff6dbe520b960386dd4e31a33a19..314d5dd904361e6c0329d508ffe7bc4c7d36138c 100644 (file)
@@ -747,7 +747,6 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *event)
        }
 
        if (ima==NULL) {
-                SpaceButs *sbuts= CTX_wm_space_buts(C);
                 Tex *tex= CTX_data_pointer_get_type(C, "texture", &RNA_Texture).data;
                 if(tex && tex->type==TEX_IMAGE)
                         ima= tex->ima;