Commit: 56f3473b85cc0e07fd984579e5e160b5cf6fcfa8
Author: Antonioya
Date:   Mon Jul 30 10:50:58 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB56f3473b85cc0e07fd984579e5e160b5cf6fcfa8

Cleanup: remove unused code

===================================================================

M       source/blender/editors/gpencil/annotate_paint.c
M       source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c

===================================================================

diff --git a/source/blender/editors/gpencil/annotate_paint.c 
b/source/blender/editors/gpencil/annotate_paint.c
index 739129e3e19..690bc13b394 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -2039,28 +2039,6 @@ static void gpencil_stroke_end(wmOperator *op)
        p->gpf = NULL;
 }
 
-/* Move last stroke in the listbase to the head to be drawn below all previous 
strokes in the layer */
-static void UNUSED_FUNCTION(gpencil_move_last_stroke_to_back)(bContext *C)
-{
-       /* move last stroke (the polygon) to head of the listbase stroke to 
draw on back of all previous strokes */
-       bGPdata *gpd = ED_gpencil_data_get_active(C);
-       bGPDlayer *gpl = BKE_gpencil_layer_getactive(gpd);
-
-       /* sanity checks */
-       if (ELEM(NULL, gpd, gpl, gpl->actframe)) {
-               return;
-       }
-
-       bGPDframe *gpf = gpl->actframe;
-       bGPDstroke *gps = gpf->strokes.last;
-       if (ELEM(NULL, gps)) {
-               return;
-       }
-
-       BLI_remlink(&gpf->strokes, gps);
-       BLI_insertlinkbefore(&gpf->strokes, gpf->strokes.first, gps);
-}
-
 /* events handling during interactive drawing part of operator */
 static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent 
*event)
 {
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c 
b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c
index 27998bd43a9..9b5186755d6 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c
@@ -134,7 +134,6 @@ static void generateStrokes(
         Object *ob, bGPDlayer *gpl, bGPDframe *gpf)
 {
        MirrorGpencilModifierData *mmd = (MirrorGpencilModifierData *)md;
-       // bGPdata *gpd = (bGPdata *)ob->data; // UNUSED
        bGPDstroke *gps, *gps_new = NULL;
        int tot_strokes;
        int i;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to