Navigation Menu

Skip to content

Commit

Permalink
Remove an unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 26, 2012
1 parent daa655b commit c10ccd2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
30 changes: 0 additions & 30 deletions ha_mroonga.cpp
Expand Up @@ -6514,36 +6514,6 @@ void ha_mroonga::ft_end()
DBUG_VOID_RETURN;
}

void ha_mroonga::merge_matched_record_keys(grn_obj *matched_result)
{
MRN_DBUG_ENTER_METHOD();
mrn_change_encoding(ctx, NULL);

grn_operator operation = GRN_OP_AND;

if (!matched_record_keys) {
matched_record_keys = grn_table_create(ctx, NULL, 0, NULL,
GRN_OBJ_TABLE_HASH_KEY | GRN_OBJ_WITH_SUBREC,
grn_table, 0);
// OR for empty table
operation = GRN_OP_OR;
}

grn_rc rc;
rc = grn_table_setoperation(ctx, matched_record_keys, matched_result,
matched_record_keys, operation);
if (rc) {
char error_message[MRN_MESSAGE_BUFFER_SIZE];
snprintf(error_message, MRN_MESSAGE_BUFFER_SIZE,
"failed to merge matched record keys: <%s>",
ctx->errbuf);
my_message(ER_ERROR_ON_READ, error_message, MYF(0));
GRN_LOG(ctx, GRN_LOG_ERROR, "%s", error_message);
}

DBUG_VOID_RETURN;
}

void ha_mroonga::generic_ft_init_ext_add_conditions_fast_order_limit(
struct st_mrn_ft_info *info, grn_obj *expression)
{
Expand Down
1 change: 0 additions & 1 deletion ha_mroonga.hpp
Expand Up @@ -719,7 +719,6 @@ class ha_mroonga: public handler
int generic_ft_init();
int wrapper_ft_init();
int storage_ft_init();
void merge_matched_record_keys(grn_obj *matched_result);
void wrapper_ft_end();
void storage_ft_end();
FT_INFO *wrapper_ft_init_ext(uint flags, uint key_nr, String *key);
Expand Down

0 comments on commit c10ccd2

Please sign in to comment.