diff options
Diffstat (limited to 'src/PathSegment.php')
| -rw-r--r-- | src/PathSegment.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/PathSegment.php b/src/PathSegment.php index d55102f..2fc4cbb 100644 --- a/src/PathSegment.php +++ b/src/PathSegment.php @@ -29,19 +29,6 @@ class PathSegment } } - public static function makeFromRouteString(string $value): static - { - $type = PathSegmentType::Parameter; - $regex = $type->routeMatchRegex(); - if (preg_match($regex, $value, $matches) === 1) { - $value = $matches[1]; - } - else { - $type = PathSegmentType::Raw; - } - return new static($value, $type); - } - public function getContent(): string { return match ($this->type) { |
