Skip to content

Commit c6c8c59

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
GH2201: Remove unused IsJoinable function from JoinWalker.
1 parent d2599c6 commit c6c8c59

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/NHibernate/Loader/JoinWalker.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -791,21 +791,6 @@ public override int GetHashCode()
791791
}
792792
}
793793

794-
/// <summary>
795-
/// Should we join this association?
796-
/// </summary>
797-
protected bool IsJoinable(JoinType joinType, ISet<AssociationKey> visitedAssociationKeys, string lhsTable,
798-
string[] lhsColumnNames, IAssociationType type, int depth)
799-
{
800-
if (joinType < JoinType.InnerJoin) return false;
801-
if (joinType == JoinType.InnerJoin) return true;
802-
803-
int maxFetchDepth = Factory.Settings.MaximumFetchDepth;
804-
bool tooDeep = maxFetchDepth >= 0 && depth >= maxFetchDepth;
805-
806-
return !tooDeep && !IsDuplicateAssociation(lhsTable, lhsColumnNames, type);
807-
}
808-
809794
protected SqlString OrderBy(IList<OuterJoinableAssociation> associations, SqlString orderBy)
810795
{
811796
return MergeOrderings(OrderBy(associations), orderBy);

0 commit comments

Comments
 (0)