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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-07-31 15:04:33 +0300
committerMarek Safar <marek.safar@gmail.com>2019-08-03 21:55:40 +0300
commit3fde98da3e5c910ec9f72760f595a864636fd142 (patch)
tree812f26787c54f4534b5a77de9cd68c0aeb030c3f /netcore
parent66a7646232ab92327f20050e0da943ab99d406aa (diff)
Re-enable CA1823 (unused private fields) (dotnet/corefx#39899)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'netcore')
-rw-r--r--netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs1
-rw-r--r--netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs2
-rw-r--r--netcore/System.Private.CoreLib/shared/System/IO/PathInternal.Unix.cs5
3 files changed, 0 insertions, 8 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs b/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs
index 02b1158382d..a6a5ac9ab01 100644
--- a/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs
+++ b/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventCounter.cs
@@ -131,7 +131,6 @@ namespace System.Diagnostics.Tracing
// Values buffering
private const int BufferedSize = 10;
private const double UnusedBufferSlotValue = double.NegativeInfinity;
- private const int UnsetIndex = -1;
private volatile double[] _bufferedValues = null!;
private volatile int _bufferedValuesIndex;
diff --git a/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs b/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
index 7322209ee8d..8b1770d87a3 100644
--- a/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
+++ b/netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventProvider.cs
@@ -111,9 +111,7 @@ namespace System.Diagnostics.Tracing
private const int s_basicTypeAllocationBufferSize = 16;
private const int s_etwMaxNumberArguments = 128;
private const int s_etwAPIMaxRefObjCount = 8;
- private const int s_maxEventDataDescriptors = 128;
private const int s_traceEventMaximumSize = 65482;
- private const int s_traceEventMaximumStringSize = 32724;
[SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
public enum WriteEventErrorCode : int
diff --git a/netcore/System.Private.CoreLib/shared/System/IO/PathInternal.Unix.cs b/netcore/System.Private.CoreLib/shared/System/IO/PathInternal.Unix.cs
index 1888c85a1b3..06c58f528c7 100644
--- a/netcore/System.Private.CoreLib/shared/System/IO/PathInternal.Unix.cs
+++ b/netcore/System.Private.CoreLib/shared/System/IO/PathInternal.Unix.cs
@@ -16,12 +16,7 @@ namespace System.IO
internal const char AltDirectorySeparatorChar = '/';
internal const char VolumeSeparatorChar = '/';
internal const char PathSeparator = ':';
-
internal const string DirectorySeparatorCharAsString = "/";
-
- // There is only one invalid path character in Unix
- private const char InvalidPathChar = '\0';
-
internal const string ParentDirectoryPrefix = @"../";
internal static int GetRootLength(ReadOnlySpan<char> path)