projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab17a6
)
Fix build break - delete unused local
author
Jan Kotas
<jkotas@microsoft.com>
Tue, 18 Jul 2017 05:15:39 +0000
(22:15 -0700)
committer
Jan Kotas
<jkotas@microsoft.com>
Wed, 19 Jul 2017 03:14:43 +0000
(
05:14
+0200)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/IO/Path.Unix.cs
patch
|
blob
|
history
diff --git
a/src/mscorlib/shared/System/IO/Path.Unix.cs
b/src/mscorlib/shared/System/IO/Path.Unix.cs
index 613bb1fa085af5f2e7476c36582124ad4534a40f..4ed5069b3f6a809c5c071926ab21001450807332 100644
(file)
--- a/
src/mscorlib/shared/System/IO/Path.Unix.cs
+++ b/
src/mscorlib/shared/System/IO/Path.Unix.cs
@@
-62,15
+62,12
@@
namespace System.IO
sb.Append(path, 0, skip);
}
- int componentCharCount = 0;
for (int i = skip; i < path.Length; i++)
{
char c = path[i];
if (PathInternal.IsDirectorySeparator(c) && i + 1 < path.Length)
{
- componentCharCount = 0;
-
// Skip this character if it's a directory separator and if the next character is, too,
// e.g. "parent//child" => "parent/child"
if (PathInternal.IsDirectorySeparator(path[i + 1]))