From 15aeb77eb47c8d5738431ab9952f382f44003c4b Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Thu, 13 Oct 2022 13:50:30 +0200 Subject: [PATCH] Remove unused code from RegexGenerator (#76951) --- .../gen/RegexGenerator.cs | 15 --------------- 1 file changed, 15 deletions(-) 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; - } } }