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 (#3391)

Obsoleted by #2539
  • Loading branch information
bahusoid committed Aug 2, 2023
1 parent 4949174 commit 782f8d7
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 782f8d7

Please sign in to comment.