File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,6 @@ class SelectTree extends Field implements HasAffixActions
8282
8383 protected Closure |bool |null $ withTrashed = false ;
8484
85- protected bool $ storeResults = false ;
86-
87- protected Collection |array |null $ results = null ;
88-
8985 protected function setUp (): void
9086 {
9187 // Load the state from relationships using a callback function.
@@ -168,11 +164,6 @@ private function buildTree(): Collection
168164 // Combine the results from both queries
169165 $ combinedResults = $ nullParentResults ->concat ($ nonNullParentResults );
170166
171- // Store results for additional functionality
172- if ($ this ->storeResults ) {
173- $ this ->results = $ combinedResults ;
174- }
175-
176167 return $ this ->buildTreeFromResults ($ combinedResults );
177168 }
178169
@@ -383,23 +374,11 @@ public function enableBranchNode(bool $enableBranchNode = true): static
383374 return $ this ;
384375 }
385376
386- public function storeResults (bool $ storeResults = true ): static
387- {
388- $ this ->storeResults = $ storeResults ;
389-
390- return $ this ;
391- }
392-
393377 public function getTree (): Collection |array
394378 {
395379 return $ this ->evaluate ($ this ->buildTree ());
396380 }
397381
398- public function getResults (): Collection |array |null
399- {
400- return $ this ->results ;
401- }
402-
403382 public function getExpandSelected (): bool
404383 {
405384 return $ this ->evaluate ($ this ->expandSelected );
You can’t perform that action at this time.
0 commit comments