summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-02-04 13:59:59 +0800
committerPeng Wu <alexepico@gmail.com>2016-02-04 13:59:59 +0800
commitccabfcadd353c047cffe31f71ee8b3f5ec31a0dc (patch)
tree1d115e706f6c11c832d18340694081c208016949
parent705183aa86743b312988732c59a20ebe1e36ee21 (diff)
downloadlibpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.tar.gz
libpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.tar.xz
libpinyin-ccabfcadd353c047cffe31f71ee8b3f5ec31a0dc.zip
fixes a typo
-rw-r--r--src/storage/phrase_large_table3_bdb.cpp5
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();