Skip to content

Commit 17c70ae

Browse files
Alvin SevilleAlvin Seville
authored andcommitted
[internal] code cleanup
1 parent 4fa1deb commit 17c70ae

13 files changed

+15
-75
lines changed

NETMouse - .NET release/Extensions/ArrExt.Generators.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace ABCNET.Extensions
88
/// </summary>
99
public static partial class ArrExt
1010
{
11-
1211
#region public
13-
1412
/// <summary>
1513
/// Заполняет массив на основе функции селектора.
1614
/// </summary>
@@ -93,8 +91,6 @@ public static void Fill<T>(this T[] array, T value)
9391
for (int i = 0; i < array.Length; i++)
9492
array[i] = value;
9593
}
96-
97-
#endregion
98-
94+
#endregion public
9995
}
10096
}

NETMouse - .NET release/Extensions/ArrExt.Input.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace ABCNET.Extensions
88
/// </summary>
99
public static partial class ArrExt
1010
{
11-
1211
#region public
13-
1412
/// <summary>
1513
/// Заполняет массив значениями типа Boolean. [Не работает при запуске из под оболочки в IDE PascalABC.NET.]
1614
/// </summary>
@@ -107,8 +105,6 @@ public static void Read(this string[] array, string prompt = EmptyStringHelper.E
107105
for (int i = 0; i < array.Length; i++)
108106
array[i] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i));
109107
}
110-
111-
#endregion
112-
108+
#endregion public
113109
}
114110
}

NETMouse - .NET release/Extensions/BaseExt.Generators.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ namespace ABCNET.Extensions
77
/// </summary>
88
public static partial class BaseExt
99
{
10-
1110
#region public
12-
1311
/// <summary>
1412
/// Создаёт последовательность от начального числа до конечного.
1513
/// </summary>
@@ -52,8 +50,6 @@ public static IEnumerable<int> Step(this int from, int step)
5250
from += step;
5351
} while (true);
5452
}
55-
56-
#endregion
57-
53+
#endregion public
5854
}
5955
}

NETMouse - .NET release/Extensions/BaseExt.Other.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
/// </summary>
66
public static partial class BaseExt
77
{
8-
98
#region public
10-
119
/// <summary>
1210
/// Проверяет лежит ли число между другими двумя.
1311
/// </summary>
@@ -21,8 +19,6 @@ public static bool IsBetween(this int target, int firstBorder, int secondBorder)
2119
Utils.Base.Swap(ref firstBorder, ref secondBorder);
2220
return (target >= firstBorder) && (target <= secondBorder);
2321
}
24-
25-
#endregion
26-
22+
#endregion public
2723
}
2824
}

NETMouse - .NET release/Extensions/BaseExt.Output.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ namespace ABCNET.Extensions
77
/// </summary>
88
public static partial class BaseExt
99
{
10-
1110
#region public
12-
1311
/// <summary>
1412
/// Âûâîäèò çíà÷åíèå òèïà Boolean.
1513
/// </summary>
@@ -185,8 +183,6 @@ public static int Println(this int item)
185183
Console.WriteLine(item.NilOrString());
186184
return item;
187185
}
188-
189-
#endregion
190-
186+
#endregion public
191187
}
192188
}

NETMouse - .NET release/Extensions/MatrExt.Generators.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace ABCNET.Extensions
88
/// </summary>
99
public static partial class MatrExt
1010
{
11-
1211
#region public
13-
1412
/// <summary>
1513
/// Заполняет матрицу на основе функции селектора.
1614
/// </summary>
@@ -81,8 +79,6 @@ public static void Fill<T>(this T[,] matrix, T value)
8179
for (int j = 0; j < matrix.GetLength(1); j++)
8280
matrix[i, j] = value;
8381
}
84-
85-
#endregion
86-
82+
#endregion public
8783
}
8884
}

NETMouse - .NET release/Extensions/MatrExt.Getters.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ namespace ABCNET.Extensions
99
/// </summary>
1010
public static partial class MatrExt
1111
{
12-
1312
#region public
14-
1513
/// <summary>
1614
/// Получает столбец матрицы.
1715
/// </summary>
@@ -136,8 +134,6 @@ public static TOutput[] Row<T, TOutput>(this T[,] matrix, int index, Func<T, TOu
136134
return matrix.InternalSwapCols(firstIndex, secondIndex, selector);
137135
}
138136

139-
140-
141137
/// <summary>
142138
/// Изменяет столбец матрицы.
143139
/// </summary>
@@ -213,11 +209,9 @@ public static IEnumerable<T[]> Rows<T>(this T[,] matrix)
213209
yield return matrix.InternalGetRow(j);
214210
}
215211
}
216-
217-
#endregion
212+
#endregion public
218213

219214
#region private
220-
221215
private static T[] InternalGetCol<T>(this T[,] matrix, int index)
222216
{
223217
int length = matrix.GetLength(0);
@@ -349,8 +343,6 @@ private static TOutput[] InternalGetRow<T, TOutput>(this T[,] matrix, int index,
349343

350344
return newMatrix;
351345
}
352-
353-
#endregion
354-
346+
#endregion private
355347
}
356348
}

NETMouse - .NET release/Extensions/MatrExt.Input.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace ABCNET.Extensions
88
/// </summary>
99
public static partial class MatrExt
1010
{
11-
1211
#region public
13-
1412
/// <summary>
1513
/// Выводит матрицу и переходит на новую строку.
1614
/// </summary>
@@ -205,11 +203,9 @@ public static void Read(this string[,] matrix, string prompt = EmptyStringHelper
205203
for (int j = 0; j < matrix.GetLength(1); j++)
206204
matrix[i, j] = Base.ReadString(prompt is null ? EmptyStringHelper.Empty : string.Format(prompt, i, j));
207205
}
208-
209-
#endregion
206+
#endregion public
210207

211208
#region private
212-
213209
private static T[,] InternalPrintln<T>(this T[,] matrix, string delimiter = DefaultDelimiterHelper.Delimiter, string start = EmptyStringHelper.Empty, string end = EmptyStringHelper.Empty)
214210
{
215211
int rowsCount = matrix.GetLength(0);
@@ -323,8 +319,6 @@ public static void Read(this string[,] matrix, string prompt = EmptyStringHelper
323319

324320
return matrix;
325321
}
326-
327-
#endregion
328-
322+
#endregion private
329323
}
330324
}

NETMouse - .NET release/Extensions/SeqExt.Getters.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ namespace ABCNET.Extensions
99
/// </summary>
1010
public static partial class SeqExt
1111
{
12-
1312
#region public
14-
1513
/// <summary>
1614
/// Преобразует последовательность в кортеж.
1715
/// </summary>
@@ -707,8 +705,6 @@ public static PartitionRes<T> Partition<T>(this IEnumerable<T> collection, Predi
707705

708706
return new PartitionRes<T>(trueList, falseList);
709707
}
710-
711-
#endregion
712-
708+
#endregion public
713709
}
714710
}

NETMouse - .NET release/Extensions/SeqExt.Output.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace ABCNET.Extensions
88
/// </summary>
99
public static partial class SeqExt
1010
{
11-
1211
#region public
13-
1412
/// <summary>
1513
/// Выводит последовательность.
1614
/// </summary>
@@ -132,8 +130,6 @@ public static IEnumerable<T> PrintLinesBy<T, TOutput>(this IEnumerable<T> collec
132130
Console.WriteLine(selector(item).NilOrString());
133131
return collection;
134132
}
135-
136-
#endregion
137-
133+
#endregion public
138134
}
139135
}

0 commit comments

Comments
 (0)