File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ class Node extends Eloquent
5555 */
5656 static protected $ _softDelete ;
5757
58- /**
59- * Whether the node is being deleted.
60- *
61- * @since 2.0
62- *
63- * @var bool
64- */
65- static protected $ deleting ;
66-
6758 /**
6859 * Pending operation.
6960 *
@@ -685,15 +676,9 @@ protected function insertNode($position)
685676 */
686677 protected function deleteDescendants ()
687678 {
688- if (static ::$ deleting ) return ;
689-
690679 $ lft = $ this ->getLft ();
691680 $ rgt = $ this ->getRgt ();
692681
693- // Make sure that inner nodes are just deleted and don't touch the tree
694- // This makes sense in Laravel 4.2
695- static ::$ deleting = true ;
696-
697682 $ query = $ this ->newQuery ()->whereNodeBetween ([ $ lft + 1 , $ rgt ]);
698683
699684 if (static ::$ _softDelete && $ this ->forceDeleting ) {
@@ -702,8 +687,6 @@ protected function deleteDescendants()
702687 $ query ->delete ();
703688 }
704689
705- static ::$ deleting = false ;
706-
707690 if ($ this ->hardDeleting ()) {
708691 $ height = $ rgt - $ lft + 1 ;
709692
You can’t perform that action at this time.
0 commit comments