This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Removed unused CHR_DIST macro from a second file (RT 130519).
authorJames E Keenan <jkeenan@cpan.org>
Fri, 6 Jan 2017 12:48:21 +0000 (07:48 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Fri, 6 Jan 2017 12:48:21 +0000 (07:48 -0500)
regcomp.c

index 7b31295..dc94b39 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -556,7 +556,6 @@ static const scan_data_t zero_scan_data =
 #define OOB_UNICODE            0xDEADBEEF
 
 #define CHR_SVLEN(sv) (UTF ? sv_len_utf8(sv) : SvCUR(sv))
 #define OOB_UNICODE            0xDEADBEEF
 
 #define CHR_SVLEN(sv) (UTF ? sv_len_utf8(sv) : SvCUR(sv))
-#define CHR_DIST(a,b) (UTF ? utf8_distance(a,b) : a - b)
 
 
 /* length of regex to show in messages that don't mark a position within */
 
 
 /* length of regex to show in messages that don't mark a position within */