diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-01-02 12:54:54 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-01-02 12:55:41 +0100 |
| commit | 90c7c05ecb5f6b71e64295a14adf461b044815ba (patch) | |
| tree | caf4b790c13b688a3a8848d49763421b236d8253 | |
| parent | 7f2d2afa9196ba6314a29e58d5324dbd9923c75e (diff) | |
| download | rust-90c7c05ecb5f6b71e64295a14adf461b044815ba.tar.gz rust-90c7c05ecb5f6b71e64295a14adf461b044815ba.zip | |
Remove some dead Python code.
It was used to measure before/after size in cfaf66c94e29a38cd3264b4a55c85b90213543d9.
| -rwxr-xr-x | src/etc/unicode.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/etc/unicode.py b/src/etc/unicode.py index bddc83f63d2..c987cfc1bde 100755 --- a/src/etc/unicode.py +++ b/src/etc/unicode.py @@ -25,9 +25,6 @@ import fileinput, re, os, sys, operator -bytes_old = 0 -bytes_new = 0 - preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -379,8 +376,6 @@ def compute_trie(rawdata, chunksize): return (root, child_data) def emit_bool_trie(f, name, t_data, is_pub=True): - global bytes_old, bytes_new - bytes_old += 8 * len(t_data) CHUNK = 64 rawdata = [False] * 0x110000 for (lo, hi) in t_data: @@ -433,7 +428,6 @@ def emit_bool_trie(f, name, t_data, is_pub=True): f.write("\n ],\n") f.write(" };\n\n") - bytes_new += 256 + 992 + 256 + 8 * len(r3) + len(r5) + 8 * len(r6) def emit_property_module(f, mod, tbl, emit): f.write("pub mod %s {\n" % mod) @@ -543,4 +537,3 @@ pub const UNICODE_VERSION: (u64, u64, u64) = (%s, %s, %s); # normalizations and conversions module emit_norm_module(rf, canon_decomp, compat_decomp, combines, norm_props) emit_conversions_module(rf, to_upper, to_lower, to_title) - #print 'bytes before = %d, bytes after = %d' % (bytes_old, bytes_new) |
