Navigation Menu

Skip to content

Commit

Permalink
remove duplicated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 23, 2011
1 parent ff31d97 commit 050fb8c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ha_mroonga.cc
Expand Up @@ -768,18 +768,8 @@ static int mrn_set_key_buf(grn_ctx *ctx, Field *field,
}
case MYSQL_TYPE_STRING:
case MYSQL_TYPE_VARCHAR:
{
ptr += 2;
String tmp;
const char *val = ptr;
int len = strlen(val);
memcpy(buf, val, len);
*size = len;
break;
}
case MYSQL_TYPE_BLOB:
{
String tmp;
ptr += HA_KEY_BLOB_LENGTH;
const char *val = ptr;
int len = strlen(val);
Expand Down

0 comments on commit 050fb8c

Please sign in to comment.