Skip to content

Commit 2dc7d4e

Browse files
committed
fix compilation errors from no longer having dot net core specific code in the benchmarks
1 parent 6f3640b commit 2dc7d4e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Tests/Tests.Benchmarking/BulkDeserializationBenchmarkTests.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
using Newtonsoft.Json;
88
using Tests.Benchmarking.Framework;
99
using Tests.Core.Client;
10-
#if !DOTNETCORE
11-
using System.Buffers;
12-
13-
#endif
1410

1511
namespace Tests.Benchmarking
1612
{
@@ -117,15 +113,5 @@ public BulkResponse MediumResponse()
117113
.ToArray()
118114
};
119115

120-
#if !DOTNETCORE
121-
public class JsonArrayPool : IArrayPool<char>
122-
{
123-
public static readonly JsonArrayPool Instance = new JsonArrayPool();
124-
125-
public char[] Rent(int minimumLength) => ArrayPool<char>.Shared.Rent(minimumLength);
126-
127-
public void Return(char[] array) => ArrayPool<char>.Shared.Return(array);
128-
}
129-
#endif
130116
}
131117
}

0 commit comments

Comments
 (0)