mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Remove redundant assumeUnique
in std.path
This commit is contained in:
parent
3c74c2b88a
commit
17b1a11afd
1 changed files with 1 additions and 2 deletions
|
@ -1758,7 +1758,6 @@ immutable(C)[] buildNormalizedPath(C)(const(C[])[] paths...)
|
|||
if (isSomeChar!C)
|
||||
{
|
||||
import std.array : array;
|
||||
import std.exception : assumeUnique;
|
||||
|
||||
const(C)[] chained;
|
||||
foreach (path; paths)
|
||||
|
@ -1770,7 +1769,7 @@ if (isSomeChar!C)
|
|||
}
|
||||
auto result = asNormalizedPath(chained);
|
||||
// .array returns a copy, so it is unique
|
||||
return () @trusted { return assumeUnique(result.array); } ();
|
||||
return result.array;
|
||||
}
|
||||
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue