Browse Source

[tools] Updated csharp .editorconfig formatter configuration to include a newline the the end of file. Removed commented out unused code.

Harald Csaszar 3 years ago
parent
commit
34d5af502e
2 changed files with 1 additions and 4 deletions
  1. 1 1
      formatters/.editorconfig
  2. 0 3
      spine-csharp/src/ExposedList.cs

+ 1 - 1
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 ####
 

+ 0 - 3
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++)