Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2018-03-08 01:16:49 +0300
committerJan Kotas <jkotas@microsoft.com>2018-03-08 04:08:33 +0300
commit07b9e86eb56cf6c82a6ad5db421db1f9a11bc5e1 (patch)
treeb3291586d9759fe00058958e7a7d82a80ab56feb /src
parent9211bcf5cf3ed891f8f3f4508db78a75e61ac81d (diff)
Remove dead code found by ILLink. (dotnet/coreclr#16759)
I'm preparing changes to enable running ILLink on SPC (similarly to what we do on corefx assemblies). There will be a separate PR for those changes. This PR just removes the dead code flagged by ILLink from the sources. Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs5
-rw-r--r--src/System.Private.CoreLib/shared/System/Globalization/DaylightTime.cs4
-rw-r--r--src/System.Private.CoreLib/shared/System/IO/Path.cs16
-rw-r--r--src/System.Private.CoreLib/shared/System/IO/PathInternal.Windows.cs13
-rw-r--r--src/System.Private.CoreLib/shared/System/Number.Parsing.cs3
5 files changed, 0 insertions, 41 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs
index 9ac32c3bd..d9f9f081c 100644
--- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs
+++ b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/ActivityTracker.cs
@@ -248,11 +248,6 @@ namespace System.Diagnostics.Tracing
#region private
/// <summary>
- /// The current activity ID. Use this to log normal events.
- /// </summary>
- private Guid CurrentActivityId { get { return m_current.Value.ActivityId; } }
-
- /// <summary>
/// Searched for a active (nonstopped) activity with the given name. Returns null if not found.
/// </summary>
private ActivityInfo FindActiveActivity(string name, ActivityInfo startLocation)
diff --git a/src/System.Private.CoreLib/shared/System/Globalization/DaylightTime.cs b/src/System.Private.CoreLib/shared/System/Globalization/DaylightTime.cs
index e6920b366..72a572c97 100644
--- a/src/System.Private.CoreLib/shared/System/Globalization/DaylightTime.cs
+++ b/src/System.Private.CoreLib/shared/System/Globalization/DaylightTime.cs
@@ -11,10 +11,6 @@ namespace System.Globalization
private readonly DateTime _end;
private readonly TimeSpan _delta;
- private DaylightTime()
- {
- }
-
public DaylightTime(DateTime start, DateTime end, TimeSpan delta)
{
_start = start;
diff --git a/src/System.Private.CoreLib/shared/System/IO/Path.cs b/src/System.Private.CoreLib/shared/System/IO/Path.cs
index fe6234cc7..9033350a8 100644
--- a/src/System.Private.CoreLib/shared/System/IO/Path.cs
+++ b/src/System.Private.CoreLib/shared/System/IO/Path.cs
@@ -477,22 +477,6 @@ namespace System.IO
return true;
}
- private static string CombineInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second)
- {
- if (first.Length == 0)
- return second.Length == 0
- ? string.Empty
- : new string(second);
-
- if (second.Length == 0)
- return new string(first);
-
- if (IsPathRooted(second))
- return new string(second);
-
- return JoinInternal(first, second);
- }
-
private static string CombineInternal(string first, string second)
{
if (string.IsNullOrEmpty(first))
diff --git a/src/System.Private.CoreLib/shared/System/IO/PathInternal.Windows.cs b/src/System.Private.CoreLib/shared/System/IO/PathInternal.Windows.cs
index 81d51ba4b..5b1a133ca 100644
--- a/src/System.Private.CoreLib/shared/System/IO/PathInternal.Windows.cs
+++ b/src/System.Private.CoreLib/shared/System/IO/PathInternal.Windows.cs
@@ -270,19 +270,6 @@ namespace System.IO
return i;
}
- private static bool StartsWithOrdinal(ReadOnlySpan<char> source, string value)
- {
- if (source.Length < value.Length)
- return false;
-
- for (int i = 0; i < value.Length; i++)
- {
- if (value[i] != source[i])
- return false;
- }
- return true;
- }
-
/// <summary>
/// Returns true if the path specified is relative to the current drive or working directory.
/// Returns false if the path is fixed to a specific drive or UNC path. This method does no
diff --git a/src/System.Private.CoreLib/shared/System/Number.Parsing.cs b/src/System.Private.CoreLib/shared/System/Number.Parsing.cs
index c6ae34d05..70fc9aea8 100644
--- a/src/System.Private.CoreLib/shared/System/Number.Parsing.cs
+++ b/src/System.Private.CoreLib/shared/System/Number.Parsing.cs
@@ -956,9 +956,6 @@ namespace System
public static unsafe ulong Mantissa(double d) =>
*((ulong*)&d) & 0x000fffffffffffff;
-
- public static unsafe bool Sign(double d) =>
- (*((uint*)&d + 1) >> 31) != 0;
}
}
}