diff --git a/libass/ass_drawing.c b/libass/ass_drawing.c index e86b1c1df..7a84a0f38 100644 --- a/libass/ass_drawing.c +++ b/libass/ass_drawing.c @@ -378,9 +378,6 @@ bool ass_drawing_parse(ASS_Outline *outline, ASS_Rect *cbox, token = token->next; started = true; break; - default: - token = token->next; - break; } } diff --git a/libass/ass_drawing.h b/libass/ass_drawing.h index a99470aa3..0aed1699e 100644 --- a/libass/ass_drawing.h +++ b/libass/ass_drawing.h @@ -29,8 +29,7 @@ typedef enum { TOKEN_LINE, TOKEN_CUBIC_BEZIER, TOKEN_B_SPLINE, - TOKEN_EXTEND_SPLINE, - TOKEN_CLOSE + TOKEN_EXTEND_SPLINE } ASS_TokenType; typedef struct ass_drawing_token {