Skip to content

Commit

Permalink
Clean up Linq Joiner class removing no longer needed AddJoinMethod pr…
Browse files Browse the repository at this point in the history
…operty
  • Loading branch information
bahusoid committed Aug 1, 2023
1 parent d6fd1dc commit c3125b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/NHibernate/Linq/Visitors/JoinBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ internal Joiner(QueryModel queryModel)
{
_nameGenerator = new NameGenerator(queryModel);
_queryModel = queryModel;
AddJoinMethod = AddJoin;
}

internal System.Action<QueryModel, NhJoinClause> AddJoinMethod { get; }

public IEnumerable<NhJoinClause> Joins
{
Expand All @@ -42,7 +39,7 @@ public Expression AddJoin(Expression expression, string key)
if (!_joins.TryGetValue(key, out join))
{
join = new NhJoinClause(_nameGenerator.GetNewName(), expression.Type, expression);
AddJoinMethod(_queryModel, join);
AddJoin(_queryModel, join);
_joins.Add(key, join);
}

Expand Down

0 comments on commit c3125b1

Please sign in to comment.