about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-07 06:59:05 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-07 06:59:05 +0000
commit4c48b520786807487f7f76d709b0dbcee63c4d0c (patch)
tree2710396f0438b063554f39d6bb8d5e0171f3def2 /ext
parent8daf254356241c135ad2c843de567910528a10a7 (diff)
downloadunicorn-4c48b520786807487f7f76d709b0dbcee63c4d0c.tar.gz
Rubinius no longer uses it, and it conflicts with a public
method in MRI.
Diffstat (limited to 'ext')
-rw-r--r--ext/unicorn_http/ext_help.h4
-rw-r--r--ext/unicorn_http/unicorn_http.rl3
2 files changed, 0 insertions, 7 deletions
diff --git a/ext/unicorn_http/ext_help.h b/ext/unicorn_http/ext_help.h
index 3aa24a8..1f76f54 100644
--- a/ext/unicorn_http/ext_help.h
+++ b/ext/unicorn_http/ext_help.h
@@ -8,10 +8,6 @@
 #define RSTRING_LEN(s) (RSTRING(s)->len)
 #endif /* !defined(RSTRING_LEN) */
 
-#ifndef RUBINIUS
-#  define rb_str_update(x) do {} while (0)
-#endif /* !RUBINIUS */
-
 #ifndef HAVE_RB_STR_SET_LEN
 #  ifdef RUBINIUS
 #    error we should never get here with current Rubinius (1.x)
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl
index 434335f..1e81c34 100644
--- a/ext/unicorn_http/unicorn_http.rl
+++ b/ext/unicorn_http/unicorn_http.rl
@@ -553,8 +553,6 @@ static VALUE HttpParser_parse(VALUE self)
   struct http_parser *hp = data_get(self);
   VALUE data = hp->buf;
 
-  rb_str_update(data);
-
   http_parser_execute(hp, RSTRING_PTR(data), RSTRING_LEN(data));
   VALIDATE_MAX_LENGTH(hp->offset, HEADER);
 
@@ -678,7 +676,6 @@ static VALUE HttpParser_filter_body(VALUE self, VALUE buf, VALUE data)
   char *dptr;
   long dlen;
 
-  rb_str_update(data);
   dptr = RSTRING_PTR(data);
   dlen = RSTRING_LEN(data);