More indirect call removals: the second part of
77c3a5dc
This may see like a random thing to do, especially given the late dev stage,
but it is needed for the clean fix of rsrc duality several commits later.
The spots were audited via "list all subs 10 lines or less":
~/devel/dbic$ find lib \
-name '*.pod' -prune \
-o -path lib/DBIx/Class/CDBICompat -prune \
-o -path lib/DBIx/Class/Admin -prune \
-o -path lib/DBIx/Class/Storage -prune \
-o -path lib/DBIx/Class/SQLMaker -prune \
-o -type f -exec perl -0777 -e '
$_ =~ /\S/
and
$_ !~ /ASSERT_NO_INTERNAL_INDIRECT_CALLS and fail_on_internal_call/
and
print "\n=====\n$ARGV\n=====\n\n$_\n\n\n"
for (<> =~ / (
^ (\s*) sub \s+ \w+ \s* \{ (?:
[^\n]+? \} \s*? \n
|
(?: [^\n]* \n ){0,10}? ^ \2 \}
)
) /xmg)
' {} \; \
| less