eliminated the purgeBranch method, cuz purge() should always do that anyway.

This commit is contained in:
JT Smith 2006-02-15 04:31:29 +00:00
parent a4578d1d7d
commit 18e24618e7
4 changed files with 8 additions and 22 deletions

View file

@ -23,7 +23,7 @@ sub process {
my $sth = WebGUI::SQL->read("select assetId,className from asset where state='trash' and stateChanged <".$expireDate);
while (my ($id, $class) = $sth->array) {
my $asset = WebGUI::Asset->new($id,$class);
$asset->purgeBranch;
$asset->purge;
}
$sth->finish;
}