diff options
Diffstat (limited to 'test/test_regset.c')
-rw-r--r-- | test/test_regset.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/test_regset.c b/test/test_regset.c index 1233836..97a33a0 100644 --- a/test/test_regset.c +++ b/test/test_regset.c @@ -85,7 +85,6 @@ time_test(int repeat, int n, char* ps[], char* s, char* end, double* rt_set, dou OnigRegSet* set; regex_t* regs[20]; OnigErrorInfo einfo; - OnigRegion* region; struct timespec ts1, ts2; double t_set, t_reg; @@ -106,7 +105,6 @@ time_test(int repeat, int n, char* ps[], char* s, char* end, double* rt_set, dou clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts2); t_set = get_sec(&ts1, &ts2); - region = onig_region_new(); for (i = 0; i < n; i++) { r = onig_new(®s[i], (UChar* )ps[i], (UChar* )(ps[i] + strlen(ps[i])), ONIG_OPTION_DEFAULT, ONIG_ENCODING_UTF8, ONIG_SYNTAX_DEFAULT, &einfo); @@ -128,8 +126,6 @@ time_test(int repeat, int n, char* ps[], char* s, char* end, double* rt_set, dou clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts2); t_reg = get_sec(&ts1, &ts2); - onig_region_free(region, 1); - *rt_set = t_set; *rt_reg = t_reg; return 0; |