diff --git a/src/Application/Factory/BaconQrCodeFactory.php b/src/Application/Factory/BaconQrCodeFactory.php index 69808fe..81c4cf4 100644 --- a/src/Application/Factory/BaconQrCodeFactory.php +++ b/src/Application/Factory/BaconQrCodeFactory.php @@ -5,7 +5,6 @@ declare(strict_types=1); namespace D3\Totp\Application\Factory; use BaconQrCode\Renderer\RendererInterface; -use BaconQrCode\Renderer\Image\Svg; // v1.0.3 use BaconQrCode\Renderer\ImageRenderer; // v2.0.0 use BaconQrCode\Renderer\Image\SvgImageBackEnd; // v2.0.0 use BaconQrCode\Renderer\RendererStyle\RendererStyle; // v2.0.0 @@ -18,10 +17,6 @@ class BaconQrCodeFactory */ public static function renderer($size) { - if (class_exists(Svg::class)) { - return self::v100($size); - } - return self::v200($size); } @@ -35,13 +30,4 @@ class BaconQrCodeFactory return $renderer; } - - private static function v100($size) - { - $renderer = oxNew(Svg::class); - $renderer->setHeight($size); - $renderer->setWidth($size); - - return $renderer; - } }