diff options
author | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:18:52 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:18:52 +0800 |
commit | 06842584c86efcf947c8b3eac2b0834f7ed32e39 (patch) | |
tree | 54c7e9ec041a99c2af510b74f112d50117620e25 /src/storage | |
parent | dec9d3f7f0aba34dccd8dbecb8a5277bdfa10196 (diff) | |
download | libpinyin-06842584c86efcf947c8b3eac2b0834f7ed32e39.tar.gz libpinyin-06842584c86efcf947c8b3eac2b0834f7ed32e39.tar.xz libpinyin-06842584c86efcf947c8b3eac2b0834f7ed32e39.zip |
remove postfix_tables from table info
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/table_info.cpp | 16 | ||||
-rw-r--r-- | src/storage/table_info.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/storage/table_info.cpp b/src/storage/table_info.cpp index 23089d9..fab962e 100644 --- a/src/storage/table_info.cpp +++ b/src/storage/table_info.cpp @@ -101,22 +101,6 @@ void SystemTableInfo2::reset() { #undef FINI_TABLE_INFO } -void SystemTableInfo2::postfix_tables() { - size_t i; - for (i = 0; i < G_N_ELEMENTS(reserved_tables); ++i) { - const pinyin_table_info_t * postfix = &reserved_tables[i]; - - guint8 index = postfix->m_dict_index; - pinyin_table_info_t * table_info = &m_table_info[index]; - assert(table_info->m_dict_index == index); - - table_info->m_table_filename = g_strdup(postfix->m_table_filename); - table_info->m_system_filename = g_strdup(postfix->m_system_filename); - table_info->m_user_filename = g_strdup(postfix->m_user_filename); - table_info->m_file_type = postfix->m_file_type; - } -} - static gchar * to_string(const char * str) { if (0 == strcmp(str, "NULL")) return NULL; diff --git a/src/storage/table_info.h b/src/storage/table_info.h index 0db4555..02245f1 100644 --- a/src/storage/table_info.h +++ b/src/storage/table_info.h @@ -66,8 +66,6 @@ private: private: void reset(); - void postfix_tables(); - public: SystemTableInfo2(); |