Skip to content

Commit 47ece0f

Browse files
committed
remove unused function, moved to checkMethodPropertiesForRelationship() to avoid reflecting twice the same method
1 parent c134661 commit 47ece0f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/app/Library/CrudPanel/CrudPanel.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -489,22 +489,4 @@ private function getRelatedEntries($model, $relationString)
489489

490490
return $results;
491491
}
492-
493-
/**
494-
* Check if the method in the given model has any parameters.
495-
*
496-
* @param object $model
497-
* @param string $method
498-
* @return bool
499-
*/
500-
private function modelMethodHasParameters($model, $method)
501-
{
502-
$reflectClassMethod = new \ReflectionMethod(get_class($model), $method);
503-
504-
if ($reflectClassMethod->getNumberOfParameters() > 0) {
505-
return true;
506-
}
507-
508-
return false;
509-
}
510492
}

0 commit comments

Comments
 (0)