diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-04 16:10:02 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-10-27 16:16:00 +0900 |
commit | 47c0ef65cd553864ff236b5e4cd37e4ac8188690 (patch) | |
tree | 246ba2dba0a006407461eaecbbc8527f740e335f /ext/openssl/ossl.c | |
parent | ff850998167e0abf4d6ca2197136fe94da9da18f (diff) | |
download | ruby-openssl-47c0ef65cd553864ff236b5e4cd37e4ac8188690.tar.gz |
ssl: avoid using ossl_exc_new()
Avoid using ossl_exc_new() and rb_exc_raise() but just use ossl_raise().
This simplifies the code with the exactly same effect.
ossl_exc_new() is now removed as it is no longer used anywhere.
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r-- | ext/openssl/ossl.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 8c28c714..8ef41385 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -356,17 +356,6 @@ ossl_raise(VALUE exc, const char *fmt, ...) rb_exc_raise(err); } -VALUE -ossl_exc_new(VALUE exc, const char *fmt, ...) -{ - va_list args; - VALUE err; - va_start(args, fmt); - err = ossl_make_error(exc, fmt, args); - va_end(args); - return err; -} - void ossl_clear_error(void) { |