Skip to content

Commit 486dfd4

Browse files
committed
Get rid of the redundand ITupleTransform interface
1 parent 05a94e1 commit 486dfd4

4 files changed

Lines changed: 10 additions & 35 deletions

File tree

Orm/Xtensive.Orm/Tuples/Transform/ConcatTransform.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Xtensive.Tuples.Transform
1414
/// This class is used for concatenation of two <see cref="Tuple"/>s.
1515
/// </summary>
1616
[Serializable]
17-
public sealed class ConcatTransform : ITupleTransform
17+
public sealed class ConcatTransform
1818
{
1919
private readonly (TupleDescriptor first, TupleDescriptor second) sources;
2020

@@ -65,9 +65,9 @@ public override string ToString()
6565
/// <summary>
6666
/// Initializes a new instance of this type.
6767
/// </summary>
68-
/// <param name="isReadOnly"><see cref="ITupleTransform.IsReadOnly"/> property value.</param>
69-
/// <param name="first">First tuple descriptor to combine.</param>
70-
/// <param name="second">Second tuple descriptor to combine.</param>
68+
/// <param name="isReadOnly">Indicates whethere the transformed <see cref="Tuple"/> is read only.</param>
69+
/// <param name="first">The <see cref="TupleDescriptor"/> of the first source <see cref="Tuple"/>.</param>
70+
/// <param name="second">The <see cref="TupleDescriptor"/> of the second source <see cref="Tuple"/>.</param>
7171
public ConcatTransform(bool isReadOnly, TupleDescriptor first, TupleDescriptor second)
7272
{
7373
var (firstCount, secondCount) = (first.Count, second.Count);

Orm/Xtensive.Orm/Tuples/Transform/ITupleTransform.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

Orm/Xtensive.Orm/Tuples/Transform/MapTransform.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Xtensive.Tuples.Transform
1818
/// Maps fields of a destination tuple to the specified fields of of the source tuple.
1919
/// </summary>
2020
[Serializable]
21-
public class MapTransform : ITupleTransform
21+
public class MapTransform
2222
{
2323
private IReadOnlyList<int> map;
2424

@@ -79,8 +79,8 @@ public override string ToString()
7979
/// <summary>
8080
/// Initializes a new instance of this type.
8181
/// </summary>
82-
/// <param name="isReadOnly"><see cref="ITupleTransform.IsReadOnly"/> property value.</param>
83-
/// <param name="descriptor">Initial <see cref="ITupleTransform.Descriptor"/> property value.</param>
82+
/// <param name="isReadOnly">Indicates whethere the transformed <see cref="Tuple"/> is read only.</param>
83+
/// <param name="descriptor">The <see cref="TupleDescriptor"/> of the target <see cref="Tuple"/>.</param>
8484
/// <param name="map"><see cref="Map"/> property value.</param>
8585
public MapTransform(bool isReadOnly, TupleDescriptor descriptor, IReadOnlyList<int> map)
8686
{

Orm/Xtensive.Orm/Tuples/Transform/SegmentTransform.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Xtensive.Tuples.Transform
1414
/// <summary>
1515
/// Extracts specified <see cref="Segment"/> from the <see cref="Tuple"/>.
1616
/// </summary>
17-
public sealed class SegmentTransform : ITupleTransform
17+
public sealed class SegmentTransform// : ITupleTransform
1818
{
1919
private readonly Segment<int> segment;
2020

@@ -72,8 +72,8 @@ public override string ToString()
7272
/// <summary>
7373
/// Initializes a new instance of this type.
7474
/// </summary>
75-
/// <param name="isReadOnly"><see cref="ITupleTransform.IsReadOnly"/> property value.</param>
76-
/// <param name="sourceDescriptor">Source tuple descriptor.</param>
75+
/// <param name="isReadOnly">Indicates whethere the transformed <see cref="Tuple"/> is read only.</param>
76+
/// <param name="sourceDescriptor">The <see cref="TupleDescriptor"/> of the source <see cref="Tuple"/>.</param>
7777
/// <param name="segment">The segment to extract.</param>
7878
public SegmentTransform(bool isReadOnly, TupleDescriptor sourceDescriptor, in Segment<int> segment)
7979
{

0 commit comments

Comments
 (0)