Skip to content

Commit 79a3796

Browse files
committed
Calculate the Huffman codebook without MP_QSTRs
1 parent c08fc93 commit 79a3796

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

py/makeqstrdata.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def translate(translation_file, i18ns):
102102

103103
def compute_huffman_coding(translations, qstrs, compression_filename):
104104
all_strings = [x[1] for x in translations]
105-
106-
# go through each qstr and print it out
107-
for _, _, qstr in qstrs.values():
108-
all_strings.append(qstr)
109105
all_strings_concat = "".join(all_strings)
110106
counts = collections.Counter(all_strings_concat)
111107
cb = huffman.codebook(counts.items())

0 commit comments

Comments
 (0)