Skip to content

Commit

Permalink
AggregatingGroupJoinRewriter - code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Jun 8, 2012
1 parent 6d029fa commit 850dc14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/NHibernate/Linq/GroupJoin/AggregatingGroupJoinRewriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ namespace NHibernate.Linq.GroupJoin
/// };
///
/// </summary>
public class AggregatingGroupJoinRewriter
public static class AggregatingGroupJoinRewriter
{
private AggregatingGroupJoinRewriter()
{
}

public static void ReWrite(QueryModel model)
{
// firstly, get the group join clauses
Expand All @@ -51,7 +47,7 @@ public static void ReWrite(QueryModel model)
model.SelectClause.TransformExpressions(s => GroupJoinSelectClauseRewriter.ReWrite(s, aggregateDetectorResults));

// Remove the aggregating group joins
foreach (GroupJoinClause aggregatingGroupJoin in aggregateDetectorResults.AggregatingClauses)
foreach (var aggregatingGroupJoin in aggregateDetectorResults.AggregatingClauses)
{
model.BodyClauses.Remove(aggregatingGroupJoin);
}
Expand Down

0 comments on commit 850dc14

Please sign in to comment.