Simplify files etag calculation

This commit is contained in:
David Montesinos
2025-04-21 18:44:16 +02:00
parent 430f83e8e9
commit d888d83a98
2 changed files with 1 additions and 23 deletions

View File

@ -620,19 +620,6 @@ namespace Oqtane.Shared
}
}
public static string GenerateSimpleHash16(string text)
{
unchecked // prevent overflow exception
{
long hash = 23;
foreach (char c in text)
{
hash = hash * 31 + c;
}
return hash.ToString("X16");
}
}
[Obsolete("ContentUrl(Alias alias, int fileId) is deprecated. Use FileUrl(Alias alias, int fileId) instead.", false)]
public static string ContentUrl(Alias alias, int fileId)
{