lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [48/49] lucenenet git commit: Removed commented code from Core.Util.Fst.NodeHash
Date Sun, 02 Oct 2016 10:17:19 GMT
Removed commented code from Core.Util.Fst.NodeHash


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

Branch: refs/heads/master
Commit: c7cf589a8835fdb7b730181fc58e3a9a84c34e75
Parents: e8b44e7
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Sep 22 10:25:14 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Sep 22 10:25:14 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Fst/NodeHash.cs | 23 -----------------------
 1 file changed, 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7cf589a/src/Lucene.Net.Core/Util/Fst/NodeHash.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Fst/NodeHash.cs b/src/Lucene.Net.Core/Util/Fst/NodeHash.cs
index 5198fe7..3a928f1 100644
--- a/src/Lucene.Net.Core/Util/Fst/NodeHash.cs
+++ b/src/Lucene.Net.Core/Util/Fst/NodeHash.cs
@@ -113,29 +113,6 @@ namespace Lucene.Net.Util.Fst
                 h = PRIME * h + (int)(scratchArc.Target ^ (scratchArc.Target >> 32));
                 h = PRIME * h + scratchArc.Output.GetHashCode();
                 h = PRIME * h + scratchArc.NextFinalOutput.GetValueHashCode();
-                //// LUCENENET: Since lists do not compare values by default in .NET,
-                //// we need this workaround to get the hashcode of the type + all of the
-                //// values.
-                //if (scratchArc.NextFinalOutput is IEnumerable)
-                //{
-                //    h = PRIME * h + scratchArc.NextFinalOutput.GetType().GetHashCode();
-                //    foreach (object value in scratchArc.NextFinalOutput as IEnumerable)
-                //    {
-                //        if (value != null)
-                //        {
-                //            h = PRIME * h + value.GetHashCode();
-                //        }
-                //        else
-                //        {
-                //            h = PRIME * h + 0; // 0 for null
-                //        }
-                //    }
-                //}
-                //else
-                //{
-                //    h = PRIME * h + scratchArc.NextFinalOutput.GetHashCode();
-                //}
-
                 if (scratchArc.IsFinal)
                 {
                     h += 17;


Mime
View raw message