소스 검색

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

Harald Csaszar 4 년 전
부모
커밋
34d5af502e
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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++)