Skip to content

Commit

Permalink
Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Jul 1, 2020
1 parent 8af868a commit 0cb7bea
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Moq/ExpressionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,6 @@ void Split(Expression e, out Expression r /* remainder */, out InvocationShape p
{
var assignmentExpression = (BinaryExpression)e;
Split(assignmentExpression.Left, out r, out var lhs, assignment: true);
PropertyInfo property;
if (lhs.Expression.Body is MemberExpression me)
{
Debug.Assert(me.Member is PropertyInfo);
property = (PropertyInfo)me.Member;
}
else
{
Debug.Assert(lhs.Expression.Body is IndexExpression);
property = ((IndexExpression)lhs.Expression.Body).Indexer;
}
var parameter = Expression.Parameter(r.Type, r is ParameterExpression ope ? ope.Name : ParameterName);
var arguments = new Expression[lhs.Method.GetParameters().Length];
for (var ai = 0; ai < arguments.Length - 1; ++ai)
Expand Down

0 comments on commit 0cb7bea

Please sign in to comment.