From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B5DDD1FABD for ; Sat, 9 May 2015 01:05:42 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH] proxy_pass: avoid unnecessary close method Date: Sat, 9 May 2015 01:05:42 +0000 Message-Id: <1431133542-30777-1-git-send-email-e@80x24.org> List-Id: No point in wasting space and reducing code clarity with this method to remove references to live objects. --- lib/yahns/proxy_pass.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index 7083104..15ae17c 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -78,12 +78,6 @@ class Yahns::ProxyPass # :nodoc: c.proxy_err_response(502, self, e, nil) end - # Called by the Rack server at the end of a successful response - def close - @hdr = @yahns_client = @rrstate = nil - super - end - # returns :wait_readable if complete, :wait_writable if not def send_req_body(req) buf, input, chunked = req -- EW