drop unused code related to PORTABLE flag (#2202)

This commit is contained in:
Brendan Forster
2020-06-08 08:33:27 -03:00
committed by GitHub
parent d02a230172
commit 08e7c14ced
4 changed files with 7 additions and 51 deletions
+2 -8
View File
@@ -1,13 +1,11 @@
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Octokit.Internal;
#if !PORTABLE
using System.Collections.Concurrent;
#endif
namespace Octokit
{
@@ -16,13 +14,9 @@ namespace Octokit
/// </summary>
public abstract class RequestParameters
{
#if PORTABLE
static readonly ConcurrentCache<Type, List<PropertyParameter>> _propertiesMap =
new ConcurrentCache<Type, List<PropertyParameter>>();
#else
static readonly ConcurrentDictionary<Type, List<PropertyParameter>> _propertiesMap =
new ConcurrentDictionary<Type, List<PropertyParameter>>();
#endif
/// <summary>
/// Converts the derived object into a dictionary that can be used to supply query string parameters.
/// </summary>