Skip to content

Commit

Permalink
Removing commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano committed Nov 16, 2010
1 parent 338b0f5 commit 1cabb7e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions models/behaviors/soft_deletable.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,9 @@ public function softDelete($model, $id, $cascade = false) {
return false;
}

/*
$model->Behaviors->dispatchMethod($model, 'beforeSoftDeletable', (array) $id);
if (method_exists($model, 'beforeSoftDeletable') && $model->beforeSoftDeletable($id) === false) {
return false;
}
*/

$model->id = $id;
$deleted = $model->save($data, false, array_keys($data[$model->alias]));

/*
$model->Behaviors->dispatchMethod($model, 'afterSoftDeletable', (array) $id);
if (method_exists($model, 'afterSoftDeletable')) {
$model->afterSoftDeletable($id);
}
*/

$this->_triggerCustomCallback($model, 'afterSoftDeletable', $id);

if ($deleted && $cascade) {
Expand Down

0 comments on commit 1cabb7e

Please sign in to comment.