diff options
author | Peng Wu <alexepico@gmail.com> | 2016-02-04 13:59:59 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-02-04 13:59:59 +0800 |
commit | ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc (patch) | |
tree | 1d115e706f6c11c832d18340694081c208016949 /src | |
parent | 705183aa86743b312988732c59a20ebe1e36ee21 (diff) | |
download | libpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.tar.gz libpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.tar.xz libpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.zip |
fixes a typo
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/phrase_large_table3_bdb.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/storage/phrase_large_table3_bdb.cpp b/src/storage/phrase_large_table3_bdb.cpp index 6b214f8..492b14e 100644 --- a/src/storage/phrase_large_table3_bdb.cpp +++ b/src/storage/phrase_large_table3_bdb.cpp @@ -351,13 +351,8 @@ bool PhraseLargeTable3::mask_out(phrase_token_t mask, while((ret = cursorp->c_get(cursorp, &db_key, &db_data, DB_NEXT)) == 0) { entry.m_chunk.set_chunk(db_data.data, db_data.size, NULL); - int length = entry.get_length(); entry.mask_out(mask, value); - /* no changes. */ - if (length == entry.get_length()) - continue; - memset(&db_data, 0, sizeof(DBT)); db_data.data = entry.m_chunk.begin(); db_data.size = entry.m_chunk.size(); |