From 6bdea8cc9efa61d07eb80124e12368fc7d0fd04f Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 24 Oct 2023 19:29:19 +0200 Subject: [PATCH] Remove unused trait --- src/Traits/CanValidateColors.php | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/Traits/CanValidateColors.php diff --git a/src/Traits/CanValidateColors.php b/src/Traits/CanValidateColors.php deleted file mode 100644 index 99f14cb4..00000000 --- a/src/Traits/CanValidateColors.php +++ /dev/null @@ -1,31 +0,0 @@ - 4) { - return false; - } - - // validate rgb values - foreach ($input as $value) { - if ($value < 0 || $value > 255) { - return false; - } - } - - // validate alpha value - if (isset($input[3]) && ($input[3] > 1 || $input[3] < 0)) { - return false; - } - - return true; - } -}