diff options
author | Eric Wong <e@80x24.org> | 2015-03-02 20:25:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-03-02 20:54:24 +0000 |
commit | dc3b5e10f0c43c93d0b8dfe6a47c458d931ab076 (patch) | |
tree | 63b1ccb88d9bac3b4229fd119c838e9ef18e927c /ext/unicorn_http/unicorn_http.rl | |
parent | d8109e5e531ceca5a4d1c0a4f9e4d625f74e336b (diff) | |
download | unicorn-dc3b5e10f0c43c93d0b8dfe6a47c458d931ab076.tar.gz |
We use the `clear' method everywhere nowadays.
Diffstat (limited to 'ext/unicorn_http/unicorn_http.rl')
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 932d259..03b4726 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -618,27 +618,6 @@ static VALUE HttpParser_dechunk_bang(VALUE self) return self; } -/** - * call-seq: - * parser.reset => nil - * - * Resets the parser to it's initial state so that you can reuse it - * rather than making new ones. - * - * This method is deprecated and to be removed in Unicorn 4.x - */ -static VALUE HttpParser_reset(VALUE self) -{ - static int warned; - - if (!warned) { - rb_warn("Unicorn::HttpParser#reset is deprecated; " - "use Unicorn::HttpParser#clear instead"); - } - HttpParser_clear(self); - return Qnil; -} - static void advance_str(VALUE str, off_t nr) { long len = RSTRING_LEN(str); @@ -939,7 +918,6 @@ void Init_unicorn_http(void) rb_define_alloc_func(cHttpParser, HttpParser_alloc); rb_define_method(cHttpParser, "initialize", HttpParser_init, 0); rb_define_method(cHttpParser, "clear", HttpParser_clear, 0); - rb_define_method(cHttpParser, "reset", HttpParser_reset, 0); rb_define_method(cHttpParser, "dechunk!", HttpParser_dechunk_bang, 0); rb_define_method(cHttpParser, "parse", HttpParser_parse, 0); rb_define_method(cHttpParser, "add_parse", HttpParser_add_parse, 1); |