From 682cd222bd5a2d7bf29f8a203fbc7791385c7bf5 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 11 Jan 2026 12:01:03 -0700 Subject: [PATCH] embed.pl: Remove no longer used sub --- regen/embed.pl | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/regen/embed.pl b/regen/embed.pl index 3ac2e03c6e..4f4eb9d04a 100755 --- a/regen/embed.pl +++ b/regen/embed.pl @@ -4960,30 +4960,6 @@ sub set_flags_visibility { return; } -sub recurse_conds { - - # Look through the list of conditionals that HeaderParser generates, - # looking for occurrences of the regex $pattern, returning true if found; - # false otherwise. - - my $status = 0; - my ($pattern, @conds) = @_; - for my $this_cond (@conds) { - - # Recurse if necessary - if (ref $this_cond eq 'ARRAY') { - $status |= recurse_conds($pattern, $this_cond->@*); - return $status if $status; # Early return if found - } - else { - $status |= $this_cond =~ $pattern; - return $status if $status; # Early return if found - } - } - - return 0; -} - sub get_and_set_cpp_visibility { my ($name, $line) = @_;