Skip to content

Commit 37bc95c

Browse files
committed
Remove unused method
1 parent 88335e3 commit 37bc95c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/LocalizedUrlGenerator.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -91,37 +91,6 @@ protected function generateFromNamedRoute($locale, $parameters, $absolute)
9191
}
9292
}
9393

94-
/**
95-
* Strip the locale from the beginning of a route name.
96-
*
97-
* @param string $name
98-
*
99-
* @return string
100-
*/
101-
protected function stripLocaleFromRouteName($name)
102-
{
103-
$parts = explode('.', $name);
104-
105-
// If there is no dot in the route name,
106-
// there is no locale in the route name.
107-
if (count($parts) === 1) {
108-
return $name;
109-
}
110-
111-
$locales = $this->getLocaleKeys();
112-
113-
// If the first part of the route name is a valid
114-
// locale, then remove it from the array.
115-
if (in_array($parts[0], $locales)) {
116-
array_shift($parts);
117-
}
118-
119-
// Rebuild the normalized route name.
120-
$name = join('.', $parts);
121-
122-
return $name;
123-
}
124-
12594
/**
12695
* Check if the current route is localized.
12796
*

0 commit comments

Comments
 (0)