Skip to content

Commit 90c7c05

Browse files
committedJan 2, 2017
Remove some dead Python code.
It was used to measure before/after size in cfaf66c.
1 parent 7f2d2af commit 90c7c05

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed
 

‎src/etc/unicode.py

-7
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525

2626
import fileinput, re, os, sys, operator
2727

28-
bytes_old = 0
29-
bytes_new = 0
30-
3128
preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT
3229
// file at the top-level directory of this distribution and at
3330
// http://rust-lang.org/COPYRIGHT.
@@ -379,8 +376,6 @@ def compute_trie(rawdata, chunksize):
379376
return (root, child_data)
380377

381378
def emit_bool_trie(f, name, t_data, is_pub=True):
382-
global bytes_old, bytes_new
383-
bytes_old += 8 * len(t_data)
384379
CHUNK = 64
385380
rawdata = [False] * 0x110000
386381
for (lo, hi) in t_data:
@@ -433,7 +428,6 @@ def emit_bool_trie(f, name, t_data, is_pub=True):
433428
f.write("\n ],\n")
434429

435430
f.write(" };\n\n")
436-
bytes_new += 256 + 992 + 256 + 8 * len(r3) + len(r5) + 8 * len(r6)
437431

438432
def emit_property_module(f, mod, tbl, emit):
439433
f.write("pub mod %s {\n" % mod)
@@ -543,4 +537,3 @@ def emit_norm_module(f, canon, compat, combine, norm_props):
543537
# normalizations and conversions module
544538
emit_norm_module(rf, canon_decomp, compat_decomp, combines, norm_props)
545539
emit_conversions_module(rf, to_upper, to_lower, to_title)
546-
#print 'bytes before = %d, bytes after = %d' % (bytes_old, bytes_new)

0 commit comments

Comments
 (0)