From 62a5799e2ec02a76a4b092a135137300164d69ad Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Fri, 7 Dec 2018 19:00:04 -0800 Subject: [PATCH] [SL.Core] Obsolete HashHelpers --- src/SixLabors.Core/Helpers/HashHelpers.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SixLabors.Core/Helpers/HashHelpers.cs b/src/SixLabors.Core/Helpers/HashHelpers.cs index d45d75bf0..b6241789b 100644 --- a/src/SixLabors.Core/Helpers/HashHelpers.cs +++ b/src/SixLabors.Core/Helpers/HashHelpers.cs @@ -1,6 +1,8 @@ // Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. +using System; + namespace SixLabors { /// @@ -14,6 +16,7 @@ namespace SixLabors /// Hash code one /// Hash code two /// Returns a hash code for the provided hash codes. + [Obsolete("Use HashCode.Combine instead")] public static int Combine(int h1, int h2) { // Lifted from coreFX repo @@ -33,6 +36,7 @@ namespace SixLabors /// Hash code two /// Hash code three /// Returns a hash code for the provided hash codes. + [Obsolete("Use HashCode.Combine instead")] public static int Combine(int h1, int h2, int h3) { int hash = Combine(h1, h2); @@ -50,6 +54,7 @@ namespace SixLabors /// Hash code three /// Hash code four /// Returns a hash code for the provided hash codes. + [Obsolete("Use HashCode.Combine instead")] public static int Combine(int h1, int h2, int h3, int h4) { int hash = Combine(h1, h2);