From: Eric Wong Date: Tue, 1 Mar 2011 08:52:34 +0000 (+0000) Subject: remove unused tryinit function X-Git-Tag: v1.0.0~2 X-Git-Url: https://repo.or.cz/w/ruby_posix_mq.git/commitdiff_plain/c885c2d30b69925f6dd9f36e74c247e650db327b remove unused tryinit function Something I considered but decided wasn't worth doing. --- diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index 73cd815..2b979a7 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -988,14 +988,6 @@ static VALUE setnonblock(VALUE self, VALUE nb) return nb; } -static VALUE tryinit(int argc, VALUE *argv, VALUE self) -{ - init(argc, argv, self); - setnonblock(self, Qtrue); - - return self; -} - /* * call-seq: * mq.trysend(string [,priority[, timeout]]) => +true+ or +false+