From bfcf58960acfa5d6aa64f2f67fa05b0ce2b63c8e Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sun, 29 Sep 2024 13:36:15 +0800 Subject: Update class PunctTable --- src/storage/punct_table_bdb.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/storage/punct_table_bdb.cpp') diff --git a/src/storage/punct_table_bdb.cpp b/src/storage/punct_table_bdb.cpp index b4e52d9..bdc7b84 100644 --- a/src/storage/punct_table_bdb.cpp +++ b/src/storage/punct_table_bdb.cpp @@ -179,38 +179,6 @@ bool PunctTable::store_entry(phrase_token_t index) { return true; } -bool PunctTable::get_all_punctuations(/* in */ phrase_token_t index, - /* out */ gchar ** & puncts) { - assert(NULL == puncts); - - if (!load_entry(index)) - return false; - - return m_entry->get_all_punctuations(puncts); -} - -bool PunctTable::append_punctuation(/* in */ phrase_token_t index, - /* in */ const gchar * punct) { - if (!load_entry(index)) - return false; - if (!m_entry->append_punctuation(punct)) - return false; - if (!store_entry(index)) - return false; - return true; -} - -bool PunctTable::remove_punctuation(/* in */ phrase_token_t index, - /* in */ const gchar * punct) { - if (!load_entry(index)) - return false; - if (!m_entry->remove_punctuation(punct)) - return false; - if (!store_entry(index)) - return false; - return true; -} - bool PunctTable::remove_all_punctuations(/* in */ phrase_token_t index) { if (NULL == m_db) return false; -- cgit