From aa708dc2d5deca62f676e4d4cedd6b47bef39f5e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 13 Oct 2023 22:53:48 +0200 Subject: [PATCH] Remove leftover method --- .../Helpers/SyntaxFormattingHelper.cs | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/Helpers/SyntaxFormattingHelper.cs b/src/ComputeSharp.SourceGeneration.Hlsl/Helpers/SyntaxFormattingHelper.cs index adb62bf4..7d630da4 100644 --- a/src/ComputeSharp.SourceGeneration.Hlsl/Helpers/SyntaxFormattingHelper.cs +++ b/src/ComputeSharp.SourceGeneration.Hlsl/Helpers/SyntaxFormattingHelper.cs @@ -91,28 +91,4 @@ internal static class SyntaxFormattingHelper span = span.Slice(6); } } - - /// - /// Creates a formatted expression to initialize a with a given content. - /// - /// The input byte content to serialize. - /// A formatted with the specified data. - /// - /// This function will produce raw byte initialization expressions, such as: - /// [1, 2, 3, 4, 5] => 0x01, 0x02, 0x03, 0x04, 0x05. - /// - public static string BuildByteArrayInitializationExpressionString(ReadOnlySpan bytecode) - { - using ImmutableArrayBuilder builder = new(); - - builder.AddRange(FormattedBytes[bytecode[0]].AsSpan()); - - foreach (byte b in bytecode.Slice(1)) - { - builder.AddRange(", ".AsSpan()); - builder.AddRange(FormattedBytes[b].AsSpan()); - } - - return builder.ToString(); - } } \ No newline at end of file