Cleanup: unused vars
authorCampbell Barton <ideasman42@gmail.com>
Wed, 22 May 2019 14:35:14 +0000 (00:35 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 22 May 2019 14:35:37 +0000 (00:35 +1000)
source/blender/draw/engines/gpencil/gpencil_shader_fx.c

index 5d3944e..9eb4123 100644 (file)
@@ -110,10 +110,7 @@ static void GPENCIL_dof_nearfar(Object *camera, float coc, float nearfar[2])
   if (camera == NULL) {
     return;
   }
-
-  const DRWContextState *draw_ctx = DRW_context_state_get();
-  Scene *scene = draw_ctx->scene;
-  Camera *cam = (Camera *)camera->data;
+  Camera *cam = camera->data;
 
   float fstop = cam->dof.aperture_fstop;
   float focus_dist = BKE_camera_object_dof_distance(camera);