Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Oct 4, 2023
1 parent 96d09ba commit e78440f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sample/callback_each_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static int
match(UChar* pattern, UChar* str, UChar* at, OnigOptionType options, OnigOptionType runtime_options)
{
int r;
unsigned char *start, *range, *end;
unsigned char *end;
regex_t* reg;
OnigErrorInfo einfo;
OnigRegion *region;
Expand All @@ -112,8 +112,6 @@ match(UChar* pattern, UChar* str, UChar* at, OnigOptionType options, OnigOptionT
region = onig_region_new();

end = str + strlen((char* )str);
start = str;
range = end;
mp = onig_new_match_param();
if (mp == 0) return -2;

Expand Down

0 comments on commit e78440f

Please sign in to comment.