[前][次][番号順一覧][スレッド一覧]

ruby-changes:39406

From: nobu <ko1@a...>
Date: Wed, 5 Aug 2015 10:48:24 +0900 (JST)
Subject: [ruby-changes:39406] nobu:r51487 (trunk): ossl_ssl.c: remove unused variables

nobu	2015-08-05 10:48:10 +0900 (Wed, 05 Aug 2015)

  New Revision: 51487

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51487

  Log:
    ossl_ssl.c: remove unused variables
    
    * ext/openssl/ossl_ssl.c (ossl_call_client_cert_cb),
      (ossl_call_tmp_dh_callback, ossl_call_tmp_ecdh_callback),
      (ossl_call_session_get_cb, ossl_call_session_new_cb): remove no
      longer used variables.

  Modified files:
    trunk/ext/openssl/ossl_ssl.c
Index: ext/openssl/ossl_ssl.c
===================================================================
--- ext/openssl/ossl_ssl.c	(revision 51486)
+++ ext/openssl/ossl_ssl.c	(revision 51487)
@@ -212,7 +212,7 @@ ossl_sslctx_set_ssl_version(VALUE self, https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L212
 static VALUE
 ossl_call_client_cert_cb(VALUE obj)
 {
-    VALUE cb, ary, cert, key, ctx;
+    VALUE cb, ary, cert, key;
 
     cb = rb_funcall(obj, rb_intern("client_cert_cb"), 0);
     if (NIL_P(cb)) return Qfalse;
@@ -244,7 +244,7 @@ ossl_client_cert_cb(SSL *ssl, X509 **x50 https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L244
 static VALUE
 ossl_call_tmp_dh_callback(VALUE args)
 {
-    VALUE cb, dh, ctx;
+    VALUE cb, dh;
     EVP_PKEY *pkey;
 
     cb = rb_funcall(rb_ary_entry(args, 0), rb_intern("tmp_dh_callback"), 0);
@@ -278,7 +278,7 @@ ossl_tmp_dh_callback(SSL *ssl, int is_ex https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L278
 static VALUE
 ossl_call_tmp_ecdh_callback(VALUE args)
 {
-    VALUE cb, ecdh, ctx;
+    VALUE cb, ecdh;
     EVP_PKEY *pkey;
 
     cb = rb_funcall(rb_ary_entry(args, 0), rb_intern("tmp_ecdh_callback"), 0);
@@ -323,7 +323,7 @@ ossl_ssl_verify_callback(int preverify_o https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L323
 static VALUE
 ossl_call_session_get_cb(VALUE ary)
 {
-    VALUE ssl_obj, sslctx_obj, cb;
+    VALUE ssl_obj, cb;
 
     Check_Type(ary, T_ARRAY);
     ssl_obj = rb_ary_entry(ary, 0);
@@ -368,7 +368,7 @@ ossl_sslctx_session_get_cb(SSL *ssl, uns https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L368
 static VALUE
 ossl_call_session_new_cb(VALUE ary)
 {
-    VALUE ssl_obj, sslctx_obj, cb;
+    VALUE ssl_obj, cb;
 
     Check_Type(ary, T_ARRAY);
     ssl_obj = rb_ary_entry(ary, 0);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]