[Groonga-mysql-commit] mroonga/mroonga [master] remove duplicated code.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 9月 23日 (金) 20:33:11 JST


Kouhei Sutou	2011-09-23 11:33:11 +0000 (Fri, 23 Sep 2011)

  New Revision: 050fb8c8b6c27a696a96f8fcc7e689feb53d6fd7

  Log:
    remove duplicated code.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+0 -10)
===================================================================
--- ha_mroonga.cc    2011-09-23 11:32:59 +0000 (00e9b7d)
+++ ha_mroonga.cc    2011-09-23 11:33:11 +0000 (93e053d)
@@ -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);




Groonga-mysql-commit メーリングリストの案内
Back to archive index