From c8f6ccd9983f23ffa2af694aadcb9cd297a6aa8a Mon Sep 17 00:00:00 2001 From: Oneric Date: Mon, 29 Apr 2024 21:31:10 +0200 Subject: [PATCH] Drop unused TOKEN_CLOSE And remove default case, we handle everything explicitly and want compiler warnings should this ever change. --- libass/ass_drawing.c | 3 --- libass/ass_drawing.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) 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 {