From 34d5af502e9000c7e5223a446e4f33aa1f6a4a58 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 18 Aug 2021 16:45:28 +0200 Subject: [PATCH] [tools] Updated csharp .editorconfig formatter configuration to include a newline the the end of file. Removed commented out unused code. --- formatters/.editorconfig | 2 +- spine-csharp/src/ExposedList.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/formatters/.editorconfig b/formatters/.editorconfig index b60d3eeb5..65b41a160 100644 --- a/formatters/.editorconfig +++ b/formatters/.editorconfig @@ -13,7 +13,7 @@ tab_width = 4 # New line preferences end_of_line = crlf -insert_final_newline = false +insert_final_newline = true #### .NET Coding Conventions #### diff --git a/spine-csharp/src/ExposedList.cs b/spine-csharp/src/ExposedList.cs index 977523cad..07cde4a9a 100644 --- a/spine-csharp/src/ExposedList.cs +++ b/spine-csharp/src/ExposedList.cs @@ -93,9 +93,6 @@ namespace Spine { var oldItems = Items; if (newSize > itemsLength) { Array.Resize(ref Items, newSize); -// var newItems = new T[newSize]; -// Array.Copy(oldItems, newItems, Count); -// Items = newItems; } else if (newSize < itemsLength) { // Allow nulling of T reference type to allow GC. for (int i = newSize; i < itemsLength; i++)