Skip to content

Commit 109233e

Browse files
committed
Simplify
1 parent 4ba63f7 commit 109233e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/NHibernate/Loader/JoinWalker.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ protected void ProcessJoins()
330330
while(joinQueue.Count > 0)
331331
{
332332
QueueEntry entry = joinQueue.Dequeue();
333-
entry.Walk(this, ref depth);
333+
entry.Walk(this);
334334
}
335335
}
336336

@@ -1256,7 +1256,7 @@ protected static string GetSelectFragment(OuterJoinableAssociation join, string
12561256

12571257
protected abstract class QueueEntry
12581258
{
1259-
public abstract void Walk(JoinWalker walker, ref int depth);
1259+
public abstract void Walk(JoinWalker walker);
12601260
}
12611261

12621262
protected abstract class QueueEntry<T> : QueueEntry where T : IJoinable
@@ -1272,7 +1272,7 @@ protected abstract class EntityQueueEntry<T> : QueueEntry<T> where T : IJoinable
12721272

12731273
protected class EntityQueueEntry : EntityQueueEntry<IOuterJoinLoadable>
12741274
{
1275-
public override void Walk(JoinWalker walker, ref int depth)
1275+
public override void Walk(JoinWalker walker)
12761276
{
12771277
walker.WalkEntityTree(Persister, Alias, Path);
12781278
}
@@ -1282,7 +1282,7 @@ protected class CollectionQueueEntry : EntityQueueEntry<IQueryableCollection>
12821282
{
12831283
public string PathAlias { get; set; }
12841284

1285-
public override void Walk(JoinWalker walker, ref int depth)
1285+
public override void Walk(JoinWalker walker)
12861286
{
12871287
walker.WalkCollectionTree(Persister, Alias, Path, PathAlias);
12881288
}
@@ -1296,9 +1296,9 @@ private NextLevelQueueEntry()
12961296
{
12971297
}
12981298

1299-
public override void Walk(JoinWalker walker, ref int depth)
1299+
public override void Walk(JoinWalker walker)
13001300
{
1301-
depth++;
1301+
walker.depth++;
13021302
}
13031303
}
13041304
}

0 commit comments

Comments
 (0)