lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/2] lucenenet git commit: Remove now unused (and redundant) ConcurrentHashMap
Date Mon, 19 Jan 2015 18:00:50 GMT
Remove now unused (and redundant) ConcurrentHashMap


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/40b5ade8
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/40b5ade8
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/40b5ade8

Branch: refs/heads/master
Commit: 40b5ade8be61cf347423f48dceb310073de00871
Parents: 97f2fdb
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Mon Jan 19 20:00:33 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Mon Jan 19 20:00:33 2015 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Core/Lucene.Net.csproj           |  1 -
 .../Support/ConcurrentHashMap.cs                | 29 --------------------
 2 files changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/40b5ade8/src/Lucene.Net.Core/Lucene.Net.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Lucene.Net.csproj b/src/Lucene.Net.Core/Lucene.Net.csproj
index fec1b4f..2f26274 100644
--- a/src/Lucene.Net.Core/Lucene.Net.csproj
+++ b/src/Lucene.Net.Core/Lucene.Net.csproj
@@ -619,7 +619,6 @@
     <Compile Include="Support\Arrays.cs" />
     <Compile Include="Support\Compatibility\BinaryWriterDataOutput.cs" />
     <Compile Include="Support\Compatibility\Collections.cs" />
-    <Compile Include="Support\ConcurrentHashMap.cs" />
     <Compile Include="Support\ConcurrentHashMapWrapper.cs" />
     <Compile Include="Support\ConcurrentHashSet.cs" />
     <Compile Include="Support\FileStreamExtensions.cs" />

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/40b5ade8/src/Lucene.Net.Core/Support/ConcurrentHashMap.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/ConcurrentHashMap.cs b/src/Lucene.Net.Core/Support/ConcurrentHashMap.cs
deleted file mode 100644
index 50ebf6a..0000000
--- a/src/Lucene.Net.Core/Support/ConcurrentHashMap.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-´╗┐using System;
-using System.Collections.Concurrent;
-using System.Collections.Generic;
-
-namespace Lucene.Net.Support
-{
-    public class ConcurrentHashMap<TKey, TValue> : HashMap<TKey, TValue>
-    {
-        public ConcurrentHashMap()
-            : this(0)
-        {
-        }
-
-        public ConcurrentHashMap(int initialCapacity)
-            : this(initialCapacity, EqualityComparer<TKey>.Default)
-        {
-        }
-
-        public ConcurrentHashMap(IEqualityComparer<TKey> comparer)
-            : this(0, EqualityComparer<TKey>.Default)
-        {
-        }
-
-        public ConcurrentHashMap(int initialCapacity, IEqualityComparer<TKey> comparer)
-            : base(new ConcurrentDictionary<TKey, TValue>(Environment.ProcessorCount,
initialCapacity, comparer), comparer)
-        {
-        }
-    }
-}
\ No newline at end of file


Mime
View raw message