Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/23/19 13:42:16 (6 years ago)
Author:
bburlacu
Message:

#2950: Remove obsolete Comparer for T in HashNode<T>

Location:
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing/HashExtensions.cs

    r16979 r16983  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using System.Linq;
    2524
     
    3938      public SimplifyAction Simplify;
    4039
    41       public IComparer<T> Comparer;
     40      //public IComparer<T> Comparer;
    4241
    4342      public bool IsLeaf => Arity == 0;
    4443
    45       public HashNode(IComparer<T> comparer) {
    46         Comparer = comparer;
    47       }
    48 
    49       private HashNode() { }
     44      //public HashNode(IComparer<T> comparer) {
     45      //  Comparer = comparer;
     46      //}
     47
     48      //public HashNode() { }
    5049
    5150      public int CompareTo(HashNode<T> other) {
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Hashing/SymbolicExpressionTreeHash.cs

    r16478 r16983  
    3838    private static readonly Constant constant = new Constant();
    3939
    40     private static readonly ISymbolicExpressionTreeNodeComparer comparer = new SymbolicExpressionTreeNodeComparer();
    4140    private static ISymbolicExpressionTreeNode ActualRoot(this ISymbolicExpressionTree tree) => tree.Root.GetSubtree(0).GetSubtree(0);
    4241
     
    7473      }
    7574      var hash = (ulong)name.GetHashCode();
    76       var hashNode = new HashNode<ISymbolicExpressionTreeNode>(comparer) {
     75      var hashNode = new HashNode<ISymbolicExpressionTreeNode> {
    7776        Data = node,
    7877        Arity = node.SubtreeCount,
Note: See TracChangeset for help on using the changeset viewer.