summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_bn.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-05-02 14:05:57 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-05-02 14:40:41 +0900
commit6a14a591065a88a1f5fce3fb062b84977f924006 (patch)
treeb680e69ac32f68d4a9b45db662f0e6ec5f03307b /ext/openssl/ossl_bn.c
parentfa51e0c91ebb4df91adb40365de70d3c19c232aa (diff)
downloadruby-openssl-6a14a591065a88a1f5fce3fb062b84977f924006.tar.gz
Remove SafeGet*() macros
They are no longer useful since we use the TypedData_Get_Struct() which also performs type checking (based on the rb_data_type_t) for the non-safe Get*() macros. Just use them instead.
Diffstat (limited to 'ext/openssl/ossl_bn.c')
-rw-r--r--ext/openssl/ossl_bn.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c
index 91038f97..b3c86d72 100644
--- a/ext/openssl/ossl_bn.c
+++ b/ext/openssl/ossl_bn.c
@@ -26,11 +26,6 @@
} \
} while (0)
-#define SafeGetBN(obj, bn) do { \
- OSSL_Check_Kind((obj), cBN); \
- GetBN((obj), (bn)); \
-} while (0)
-
static void
ossl_bn_free(void *ptr)
{