Remove unused code from RegexGenerator (#76951)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Thu, 13 Oct 2022 11:50:30 +0000 (13:50 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 11:50:30 +0000 (04:50 -0700)
src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.cs

index effe012..15645d7 100644 (file)
@@ -318,20 +318,5 @@ namespace System.Text.RegularExpressions.Generator
                 return false;
             }
         }
-
-        /// <summary>Computes a hash of the string.</summary>
-        /// <remarks>
-        /// Currently an FNV-1a hash function. The actual algorithm used doesn't matter; just something
-        /// simple to create a deterministic, pseudo-random value that's based on input text.
-        /// </remarks>
-        private static uint ComputeStringHash(string s)
-        {
-            uint hashCode = 2166136261;
-            foreach (char c in s)
-            {
-                hashCode = (c ^ hashCode) * 16777619;
-            }
-            return hashCode;
-        }
     }
 }