diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php index 9a5046f7..9b34c3d7 100644 --- a/src/Drivers/AbstractDriver.php +++ b/src/Drivers/AbstractDriver.php @@ -149,27 +149,4 @@ abstract class AbstractDriver implements DriverInterface // attach driver return $specialized->setDriver($this); } - - /** - * {@inheritdoc} - * - * @see DriverInterface::specializeMultiple() - * - * @throws NotSupportedException - * @throws DriverException - */ - public function specializeMultiple(array $objects): array - { - return array_map( - function (string|object $object): ModifierInterface|AnalyzerInterface|EncoderInterface|DecoderInterface { - return $this->specialize( - match (true) { - is_string($object) => new $object(), - is_object($object) => $object, - } - ); - }, - $objects - ); - } } diff --git a/src/Interfaces/DriverInterface.php b/src/Interfaces/DriverInterface.php index f99b91d7..6f69f46c 100644 --- a/src/Interfaces/DriverInterface.php +++ b/src/Interfaces/DriverInterface.php @@ -35,16 +35,6 @@ interface DriverInterface ModifierInterface|AnalyzerInterface|EncoderInterface|DecoderInterface $object ): ModifierInterface|AnalyzerInterface|EncoderInterface|DecoderInterface; - /** - * Resolve array of classnames or objects into their specialized version for the current driver - * - * @param array $objects - * @throws NotSupportedException - * @throws DriverException - * @return array - */ - public function specializeMultiple(array $objects): array; - /** * Create new image instance with the current driver in given dimensions *