From 06842584c86efcf947c8b3eac2b0834f7ed32e39 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 20 May 2015 15:18:52 +0800 Subject: remove postfix_tables from table info --- src/storage/table_info.cpp | 16 ---------------- src/storage/table_info.h | 2 -- 2 files changed, 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(); -- cgit