From f0e7506905322d3da8d6234d2d835e014b1a4ddf Mon Sep 17 00:00:00 2001 From: Devin Bidwell Date: Sat, 20 Dec 2025 17:35:22 -0700 Subject: [PATCH] Remove dead code and change some comments --- csharp_mod/Formatter.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/csharp_mod/Formatter.cs b/csharp_mod/Formatter.cs index 6d8bdbd..23831cc 100644 --- a/csharp_mod/Formatter.cs +++ b/csharp_mod/Formatter.cs @@ -218,12 +218,11 @@ public class SlangFormatter : ICodeFormatter { return; } - // get the "middle" IC10 line + // get the total range of the IC10 source for the selected Slang line var max = lines.Max(line => line.Ic10Line); var min = lines.Min(line => line.Ic10Line); - var middle = (max + min) / 2; - // first, update the line styles that are between min and max inclusive + // highlight all the IC10 lines that are within the specified range foreach (var index in Enumerable.Range((int)min, (int)(max - min) + 1)) { var lineText = iC10CodeFormatter.Lines[index].Text;