Skip to content

Commit

Permalink
Drop unused TOKEN_CLOSE
Browse files Browse the repository at this point in the history
And remove default case, we handle everything explicitly
and want compiler warnings should this ever change.
  • Loading branch information
TheOneric committed May 6, 2024
1 parent 2d06ea9 commit c8f6ccd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions libass/ass_drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
3 changes: 1 addition & 2 deletions libass/ass_drawing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c8f6ccd

Please sign in to comment.