Remove unnecessary [Pure] attributes

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-19 17:55:06 +01:00
1 親 30fea918cf
コミット 4d51d8d05b
53ファイル変更
+70 -2093

検索条件に一致するファイルはありません

-3
ファイルの表示
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Numerics;
using System.Reflection;
@@ -21,7 +20,6 @@ internal static class HlslKnownMethods
/// <summary>
/// Builds the mapping of supported known methods to HLSL names.
/// </summary>
[Pure]
private static IReadOnlyDictionary<string, string> BuildKnownMethodsMap()
{
Dictionary<string, string> knownMethods = new()
@@ -148,7 +146,6 @@ internal static class HlslKnownMethods
/// <param name="name">The input fully qualified method name.</param>
/// <param name="mapped">The mapped name, if one is found.</param>
/// <returns>The HLSL-compatible member name that can be used in an HLSL shader.</returns>
[Pure]
public static bool TryGetMappedName(string name, out string? mapped)
{
return KnownMethods.TryGetValue(name, out mapped);