From 50d01b5cf12021bd6bf6811b1870a48d55f87d6c Mon Sep 17 00:00:00 2001 From: Toddr Bot Date: Sat, 23 May 2026 02:01:00 +0000 Subject: [PATCH] Remove redundant BEGIN eval block for Crypt::OpenSSL::Bignum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The BEGIN block that conditionally required Crypt::OpenSSL::Bignum dates from when Bignum was an optional dependency. Since commit e1c9975 made it a hard requirement via `use Crypt::OpenSSL::Bignum`, the BEGIN eval block is dead code — if the `use` fails, compilation aborts before reaching the BEGIN block. Co-Authored-By: Claude Opus 4.6 --- RSA.pm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/RSA.pm b/RSA.pm index c2d3a3f..e807c68 100644 --- a/RSA.pm +++ b/RSA.pm @@ -11,13 +11,6 @@ our $VERSION = '0.41'; use XSLoader; XSLoader::load 'Crypt::OpenSSL::RSA', $VERSION; -BEGIN { - eval { - local $SIG{__DIE__}; # prevent outer handlers from being called - require Crypt::OpenSSL::Bignum; - }; -} ## no critic qw(RequireCheckingReturnValueOfEval); - sub new_public_key { my ( $proto, $p_key_string ) = @_; croak "unrecognized key format: expected PEM-encoded key (starting with '-----BEGIN') "