Эх сурвалжийг харах

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

Harald Csaszar 4 жил өмнө
parent
commit
34d5af502e

+ 1 - 1
formatters/.editorconfig

@@ -13,7 +13,7 @@ tab_width = 4
 
 
 # New line preferences
 # New line preferences
 end_of_line = crlf
 end_of_line = crlf
-insert_final_newline = false
+insert_final_newline = true
 
 
 #### .NET Coding Conventions ####
 #### .NET Coding Conventions ####
 
 

+ 0 - 3
spine-csharp/src/ExposedList.cs

@@ -93,9 +93,6 @@ namespace Spine {
 			var oldItems = Items;
 			var oldItems = Items;
 			if (newSize > itemsLength) {
 			if (newSize > itemsLength) {
 				Array.Resize(ref Items, newSize);
 				Array.Resize(ref Items, newSize);
-//				var newItems = new T[newSize];
-//				Array.Copy(oldItems, newItems, Count);
-//				Items = newItems;
 			} else if (newSize < itemsLength) {
 			} else if (newSize < itemsLength) {
 				// Allow nulling of T reference type to allow GC.
 				// Allow nulling of T reference type to allow GC.
 				for (int i = newSize; i < itemsLength; i++)
 				for (int i = newSize; i < itemsLength; i++)