Skip to content

Commit 74ec5b2

Browse files
committed
Cleanup. 1.3.0-beta3 preparations
1 parent dba7077 commit 74ec5b2

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

Main/nuget/Readme.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
CodeJam 1.3.0-beta2 Release Notes
1+
CodeJam 1.3.0-beta3 Release Notes
22
---------------------------------
33

4+
What's new in 1.3.0-beta3
5+
-------------------------
6+
* Helpers for metadata attributes
7+
* Ranges improvements
8+
* HashCode class performance optimization
9+
* ReflectionEnumHelper.GetFields method added
10+
* EnumerableExtension.CombinedWithPrevious/Next methods added
11+
* CompositeRangeExtensions.ToCompositeRangeFrom/To methods added
12+
* Composite ranges Trim/Extend methods added
13+
* Breaking change! ObjectPool and SharedPool classes removed
14+
* Code cleanup
15+
416
What's new in 1.3.0-beta2
517
-------------------------
618
* Memoize overloads with LazyThreadSafetyMode

Main/src/Algorithms/HashCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static int Combine(int h1, int h2)
2626
{
2727
// RyuJIT optimizes this to use the ROL instruction
2828
// Related GitHub pull request: dotnet/coreclr#1830
29-
uint rol5 = ((uint)h1 << 5) | ((uint)h1 >> 27);
29+
var rol5 = ((uint)h1 << 5) | ((uint)h1 >> 27);
3030
return ((int)rol5 + h1) ^ h2;
3131
}
3232

Main/src/Collections/Enumerable/EnumerableExtensions.With.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ private static IEnumerable<TResult> CombineWithPreviousImpl<T, TResult>(
6262
[NotNull] this IEnumerable<T> source,
6363
[NotNull] Func<T, T, TResult> prevNextSelector)
6464
{
65-
T previous = default(T);
66-
bool hasPrevious = false;
65+
var previous = default(T);
66+
var hasPrevious = false;
6767

6868
foreach (var item in source)
6969
{
@@ -129,8 +129,8 @@ private static IEnumerable<TResult> CombineWithNextImpl<T, TResult>(
129129
[NotNull] this IEnumerable<T> source, T combineLast,
130130
[NotNull] Func<T, T, TResult> prevNextSelector)
131131
{
132-
T previous = default(T);
133-
bool hasPrevious = false;
132+
var previous = default(T);
133+
var hasPrevious = false;
134134

135135
foreach (var item in source)
136136
{

Main/src/Ranges/[RangeExtensions]/CompositeRangeExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
using System.Collections.Generic;
33
using System.Linq;
44

5-
using CodeJam.Collections;
6-
75
using JetBrains.Annotations;
86

97
using static CodeJam.Ranges.CompositeRangeInternal;

0 commit comments

Comments
 (0)