diff --git a/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.cs b/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.cs index effe012744261..15645d72fd7a3 100644 --- a/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.cs +++ b/src/libraries/System.Text.RegularExpressions/gen/RegexGenerator.cs @@ -318,20 +318,5 @@ static bool HasCaseInsensitiveBackReferences(RegexNode node) return false; } } - - /// Computes a hash of the string. - /// - /// 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. - /// - private static uint ComputeStringHash(string s) - { - uint hashCode = 2166136261; - foreach (char c in s) - { - hashCode = (c ^ hashCode) * 16777619; - } - return hashCode; - } } }