diff options
author | K.Kosako <kosako@sofnec.co.jp> | 2019-09-20 15:43:11 +0900 |
---|---|---|
committer | K.Kosako <kosako@sofnec.co.jp> | 2019-09-20 17:11:54 +0900 |
commit | 3240aa01cf88ae562ba63f957ba888839ead16fc (patch) | |
tree | cdf930881b5da98ce50623edc483a93fc61043fb /test | |
parent | 8d78b24ac1c2c17d5a560bc7f02e9e20d9e9c76c (diff) | |
download | oniguruma-3240aa01cf88ae562ba63f957ba888839ead16fc.zip oniguruma-3240aa01cf88ae562ba63f957ba888839ead16fc.tar.gz oniguruma-3240aa01cf88ae562ba63f957ba888839ead16fc.tar.bz2 |
remove ununsed codes
Diffstat (limited to 'test')
-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; |