summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-18 15:48:13 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-18 15:48:13 +0000
commitea724faac0e9bd1598db5c1f1c5bd689c0be70fc (patch)
treee9cf9e92e0edf99cfd1b4f3b456b9e468dbb8b44 /sv.c
parenta3d1be69db4c082c1b9cef14f51a6e7fe4a9dac9 (diff)
downloadperl-ea724faac0e9bd1598db5c1f1c5bd689c0be70fc.tar.gz
Given that we now do the tests in S_visit() to avoid calling the
helper function when skippable, no need to retain those tests inside the helper functions do_clean_objs() and do_clean_named_objs(). p4raw-id: //depot/perl@29872
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 9ef3eef54a..b602ddaa37 100644
--- a/sv.c
+++ b/sv.c
@@ -443,7 +443,8 @@ static void
do_clean_objs(pTHX_ SV *ref)
{
dVAR;
- if (SvROK(ref)) {
+ assert (SvROK(ref));
+ {
SV * const target = SvRV(ref);
if (SvOBJECT(target)) {
DEBUG_D((PerlIO_printf(Perl_debug_log, "Cleaning object ref:\n "), sv_dump(ref)));
@@ -469,7 +470,8 @@ static void
do_clean_named_objs(pTHX_ SV *sv)
{
dVAR;
- if (SvTYPE(sv) == SVt_PVGV && isGV_with_GP(sv) && GvGP(sv)) {
+ assert(SvTYPE(sv) == SVt_PVGV);
+ if (isGV_with_GP(sv) && GvGP(sv)) {
if ((
#ifdef PERL_DONT_CREATE_GVSV
GvSV(sv) &&