From 90c7c05ecb5f6b71e64295a14adf461b044815ba Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 2 Jan 2017 12:54:54 +0100 Subject: [PATCH] Remove some dead Python code. It was used to measure before/after size in cfaf66c94e29a38cd3264b4a55c85b90213543d9. --- src/etc/unicode.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/etc/unicode.py b/src/etc/unicode.py index bddc83f63d25d..c987cfc1bdecd 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 @@ def emit_norm_module(f, canon, compat, combine, norm_props): # 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)