summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table3_kyotodb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/phrase_large_table3_kyotodb.cpp')
-rw-r--r--src/storage/phrase_large_table3_kyotodb.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/storage/phrase_large_table3_kyotodb.cpp b/src/storage/phrase_large_table3_kyotodb.cpp
index 80eb075..529aa65 100644
--- a/src/storage/phrase_large_table3_kyotodb.cpp
+++ b/src/storage/phrase_large_table3_kyotodb.cpp
@@ -67,7 +67,6 @@ bool PhraseLargeTable3::attach(const char * dbfile, guint32 flags) {
return m_db->open(dbfile, mode);
}
-#if 0
/* load_db/store_db method */
/* use in-memory DBM here, for better performance. */
bool PhraseLargeTable3::load_db(const char * filename) {
@@ -95,7 +94,7 @@ bool PhraseLargeTable3::load_db(const char * filename) {
return true;
}
-bool PhraseLargeTable3::store_db(const char * new_filename) {
+bool PhraseLargeTable3::store_db(const char * new_filename){
int ret = unlink(new_filename);
if ( ret != 0 && errno != ENOENT)
return false;
@@ -113,7 +112,6 @@ bool PhraseLargeTable3::store_db(const char * new_filename) {
return true;
}
-#endif
/* search method */
int PhraseLargeTable3::search(int phrase_length,