Skip to content

Commit 16b4450

Browse files
committed
encdb.h.tmpl: remove stale macros
* template/encdb.h.tmpl: remove stale ENCIDX macros which never been used, ENCINDEX enums is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent cb4b55d commit 16b4450

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

template/encdb.h.tmpl

-4
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,10 @@ encdirs.each do |encdir|
8282
end
8383
encodings.each_with_index do |e, i|
8484
%>ENC_DEFINE("<%=e%>");
85-
#define ENCIDX_<%=e.tr('-', '_')%> <%=i%>
8685
% end
8786
% encidx = encodings.size - 1
8887
% lines.each do |line|
8988
<%=line%>
90-
% if /^ENC_(?:DUMMY(?:_UNICODE)?|REPLICATE)\(\s*"([^"]+)/ =~ line
91-
#define ENCIDX_<%=$1.tr('-', '_')%> <%=encidx+=1%>
92-
% end
9389
% end
9490

9591
#define ENCODING_COUNT <%=count%>

0 commit comments

Comments
 (0)