From b2889a3ba022410a1929c969acae8e581f670535 Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Thu, 29 Sep 2022 23:06:58 +0200 Subject: [PATCH] misc: remove unused code --- src/Mapper/Object/Argument.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Mapper/Object/Argument.php b/src/Mapper/Object/Argument.php index 74f1a4c..4cd124d 100644 --- a/src/Mapper/Object/Argument.php +++ b/src/Mapper/Object/Argument.php @@ -9,13 +9,6 @@ use CuyZ\Valinor\Definition\EmptyAttributes; use CuyZ\Valinor\Definition\ParameterDefinition; use CuyZ\Valinor\Definition\PropertyDefinition; use CuyZ\Valinor\Type\Type; -use CuyZ\Valinor\Type\Types\NonEmptyStringType; -use CuyZ\Valinor\Type\Types\NullType; -use CuyZ\Valinor\Type\Types\PositiveIntegerType; -use CuyZ\Valinor\Type\Types\ShapedArrayElement; -use CuyZ\Valinor\Type\Types\ShapedArrayType; -use CuyZ\Valinor\Type\Types\StringValueType; -use CuyZ\Valinor\Type\Types\UnionType; /** @internal */ final class Argument @@ -37,24 +30,6 @@ final class Argument $this->type = $type; } - public static function forDateTime(): self - { - return new self('value', new UnionType( - new UnionType(PositiveIntegerType::get(), NonEmptyStringType::get()), - new ShapedArrayType( - new ShapedArrayElement( - new StringValueType('datetime'), - new UnionType(PositiveIntegerType::get(), NonEmptyStringType::get()) - ), - new ShapedArrayElement( - new StringValueType('format'), - new UnionType(NullType::get(), NonEmptyStringType::get()), - true - ), - ) - )); - } - public static function fromParameter(ParameterDefinition $parameter): self { $instance = new self($parameter->name(), $parameter->type());