summaryrefslogtreecommitdiffstats
path: root/utils/storage
diff options
context:
space:
mode:
Diffstat (limited to 'utils/storage')
-rw-r--r--utils/storage/gen_binary_files.cpp1
-rw-r--r--utils/storage/gen_pinyin_table.cpp3
2 files changed, 0 insertions, 4 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp
index 8ffb5fc..932c1cd 100644
--- a/utils/storage/gen_binary_files.cpp
+++ b/utils/storage/gen_binary_files.cpp
@@ -36,7 +36,6 @@ bool generate_binary_files(const char * pinyin_table_filename,
const char * phrase_table_filename,
const pinyin_table_info_t * phrase_files) {
/* generate pinyin index*/
- pinyin_option_t options = USE_TONE;
ChewingLargeTable2 pinyin_table;
pinyin_table.attach(pinyin_table_filename, ATTACH_READWRITE|ATTACH_CREATE);
diff --git a/utils/storage/gen_pinyin_table.cpp b/utils/storage/gen_pinyin_table.cpp
index 4b7073e..36ce0aa 100644
--- a/utils/storage/gen_pinyin_table.cpp
+++ b/utils/storage/gen_pinyin_table.cpp
@@ -288,7 +288,6 @@ void gen_phrase_file(const char * outputfile, int phrase_index){
(chewing_and_freqs, chewing_and_freq_item, n);
ChewingKeyVector keys = chewing_and_freq->keys;
- ChewingKeyRestVector key_rests = chewing_and_freq->key_rests;
GArray * pinyins = g_array_new(TRUE, FALSE, sizeof(gchar *));
gchar * pinyin = NULL;
@@ -296,8 +295,6 @@ void gen_phrase_file(const char * outputfile, int phrase_index){
size_t k;
for (k = 0; k < keys->len; ++k) {
ChewingKey key = g_array_index(keys, ChewingKey, k);
- ChewingKeyRest key_rest = g_array_index
- (key_rests, ChewingKeyRest, k);
//assert (CHEWING_ZERO_TONE != key.m_tone);
pinyin = key.get_pinyin_string();