[TASK] Deprecate GraphicalFunctions->init method
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Processing / LocalImageProcessor.php
index 5c20e50..240b260 100644 (file)
@@ -140,10 +140,8 @@ class LocalImageProcessor implements ProcessorInterface
     /**
      * @return GraphicalFunctions
      */
-    protected function getGraphicalFunctionsObject()
+    protected function getGraphicalFunctionsObject(): GraphicalFunctions
     {
-        $graphicalFunctionsObject = GeneralUtility::makeInstance(GraphicalFunctions::class);
-        $graphicalFunctionsObject->init();
-        return $graphicalFunctionsObject;
+        return GeneralUtility::makeInstance(GraphicalFunctions::class);
     }
 }