eliminated the purgeBranch method, cuz purge() should always do that anyway.
This commit is contained in:
parent
a4578d1d7d
commit
18e24618e7
4 changed files with 8 additions and 22 deletions
|
|
@ -67,24 +67,6 @@ sub duplicateBranch {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 purgeBranch ( )
|
||||
|
||||
Returns 1. Purges self and all descendants.
|
||||
|
||||
=cut
|
||||
|
||||
sub purgeBranch {
|
||||
my $self = shift;
|
||||
my $descendants = $self->getLineage(["self","descendants"],{returnObjects=>1, invertTree=>1, statesToInclude=>['published', 'clipboard', 'clipboard-limbo','trash','trash-limbo']});
|
||||
foreach my $descendant (@{$descendants}) {
|
||||
$descendant->purge;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_editBranch ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue