Skip to content

Commit 6491ce6

Browse files
committed
Remove dummy declarations for mOSSL and eOSSLError
These declarations were added to every source file because older versions of RDoc did not resolve ancestor tree across files. Since RDoc 6.9.0 supports this, this workaround is no longer needed. https://redirect.github.com/ruby/rdoc/pull/1217
1 parent ccdaf39 commit 6491ce6

31 files changed

+0
-163
lines changed

ext/openssl/ossl_asn1.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,11 +1288,6 @@ Init_ossl_asn1(void)
12881288
VALUE ary;
12891289
int i;
12901290

1291-
#if 0
1292-
mOSSL = rb_define_module("OpenSSL");
1293-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
1294-
#endif
1295-
12961291
sym_UNIVERSAL = ID2SYM(rb_intern_const("UNIVERSAL"));
12971292
sym_CONTEXT_SPECIFIC = ID2SYM(rb_intern_const("CONTEXT_SPECIFIC"));
12981293
sym_APPLICATION = ID2SYM(rb_intern_const("APPLICATION"));

ext/openssl/ossl_bn.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,11 +1202,6 @@ ossl_bn_set_flags(VALUE self, VALUE arg)
12021202
void
12031203
Init_ossl_bn(void)
12041204
{
1205-
#if 0
1206-
mOSSL = rb_define_module("OpenSSL");
1207-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
1208-
#endif
1209-
12101205
#ifdef HAVE_RB_EXT_RACTOR_SAFE
12111206
ossl_bn_ctx_key = rb_ractor_local_storage_ptr_newkey(&ossl_bn_ctx_key_type);
12121207
#else

ext/openssl/ossl_cipher.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,6 @@ ossl_cipher_set_ccm_data_len(VALUE self, VALUE data_len)
901901
void
902902
Init_ossl_cipher(void)
903903
{
904-
#if 0
905-
mOSSL = rb_define_module("OpenSSL");
906-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
907-
#endif
908-
909904
/* Document-class: OpenSSL::Cipher
910905
*
911906
* Provides symmetric algorithms for encryption and decryption. The

ext/openssl/ossl_config.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,6 @@ Init_ossl_config(void)
413413
char *path;
414414
VALUE path_str;
415415

416-
#if 0
417-
mOSSL = rb_define_module("OpenSSL");
418-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
419-
#endif
420-
421416
/* Document-class: OpenSSL::Config
422417
*
423418
* Configuration for the openssl library.

ext/openssl/ossl_digest.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,6 @@ ossl_digest_block_length(VALUE self)
365365
void
366366
Init_ossl_digest(void)
367367
{
368-
#if 0
369-
mOSSL = rb_define_module("OpenSSL");
370-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
371-
#endif
372-
373368
/* Document-class: OpenSSL::Digest
374369
*
375370
* OpenSSL::Digest allows you to compute message digests (sometimes

ext/openssl/ossl_engine.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,6 @@ ossl_engine_inspect(VALUE self)
466466
void
467467
Init_ossl_engine(void)
468468
{
469-
#if 0
470-
mOSSL = rb_define_module("OpenSSL");
471-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
472-
#endif
473-
474469
cEngine = rb_define_class_under(mOSSL, "Engine", rb_cObject);
475470
eEngineError = rb_define_class_under(cEngine, "EngineError", eOSSLError);
476471

ext/openssl/ossl_hmac.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,6 @@ ossl_hmac_reset(VALUE self)
256256
void
257257
Init_ossl_hmac(void)
258258
{
259-
#if 0
260-
mOSSL = rb_define_module("OpenSSL");
261-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
262-
#endif
263-
264259
/*
265260
* Document-class: OpenSSL::HMAC
266261
*

ext/openssl/ossl_kdf.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,6 @@ kdf_hkdf(int argc, VALUE *argv, VALUE self)
239239
void
240240
Init_ossl_kdf(void)
241241
{
242-
#if 0
243-
mOSSL = rb_define_module("OpenSSL");
244-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
245-
#endif
246-
247242
/*
248243
* Document-module: OpenSSL::KDF
249244
*

ext/openssl/ossl_ns_spki.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,6 @@ ossl_spki_verify(VALUE self, VALUE key)
378378
void
379379
Init_ossl_ns_spki(void)
380380
{
381-
#if 0
382-
mOSSL = rb_define_module("OpenSSL");
383-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
384-
#endif
385-
386381
mNetscape = rb_define_module_under(mOSSL, "Netscape");
387382

388383
eSPKIError = rb_define_class_under(mNetscape, "SPKIError", eOSSLError);

ext/openssl/ossl_ocsp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,11 +1626,6 @@ ossl_ocspcid_to_der(VALUE self)
16261626
void
16271627
Init_ossl_ocsp(void)
16281628
{
1629-
#if 0
1630-
mOSSL = rb_define_module("OpenSSL");
1631-
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);
1632-
#endif
1633-
16341629
/*
16351630
* OpenSSL::OCSP implements Online Certificate Status Protocol requests
16361631
* and responses.

0 commit comments

Comments
 (0)