Hiroyuki Ikezoe
ikezo****@users*****
Wed Dec 6 19:22:01 JST 2006
Index: kazehakase/module/search/kz-anthy-trainer.c diff -u kazehakase/module/search/kz-anthy-trainer.c:1.3 kazehakase/module/search/kz-anthy-trainer.c:1.4 --- kazehakase/module/search/kz-anthy-trainer.c:1.3 Wed Dec 6 11:25:23 2006 +++ kazehakase/module/search/kz-anthy-trainer.c Wed Dec 6 19:22:01 2006 @@ -71,10 +71,6 @@ const gchar *title, const gchar *contents, GTime mtime); -static gboolean unregister_document (KzSearch *search, const gchar *uri); -static GPid optimize_index (KzSearch *search); -static void make_index (KzSearch *search); -static gboolean exist_index_dir (KzSearch *search); static KzAnthyTrainer *the_kz_anthy_trainer = NULL; @@ -142,10 +138,10 @@ search_class->get_search_result_html = NULL; search_class->get_search_result_bookmark = NULL; search_class->register_document = register_document; - search_class->unregister_document = unregister_document; - search_class->optimize_index = optimize_index; - search_class->make_index = make_index; - search_class->exist_index_dir = exist_index_dir; + search_class->unregister_document = NULL; + search_class->optimize_index = NULL; + search_class->make_index = NULL; + search_class->exist_index_dir = NULL; g_type_class_add_private (object_class, sizeof(KzAnthyTrainerPrivate)); } @@ -234,30 +230,3 @@ return FALSE; } -gboolean -unregister_document (KzSearch *search, const gchar *uri) -{ - return FALSE; -} - -static GPid -optimize_index (KzSearch *search) -{ - return 0; -} - -static void -make_index (KzSearch *search) -{ -} - -static gboolean -exist_index_dir(KzSearch *search) -{ - gboolean exist = FALSE; - KzAnthyTrainerPrivate *priv = KZ_ANTHY_TRAINER_GET_PRIVATE(search); - - exist = g_file_test(priv->dbname, G_FILE_TEST_IS_DIR); - - return exist; -}