Skip to content

Commit

Permalink
Fixed JS translations APIafter rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Oct 7, 2023
1 parent 2ca439b commit 015a691
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ public void AddMethodTranslator<T>(Expression<Func<T>> methodCall, IJavascriptMe
CheckNotAccidentalDefinition(method);
AddMethodTranslator(method, translator);
}
public void AddMethodTranslator(Expression<Action> methodCall, IJavascriptMethodTranslator translator)
{
var method = (MethodInfo)MethodFindingHelper.GetMethodFromExpression(methodCall);
CheckNotAccidentalDefinition(method);
AddMethodTranslator(method, translator);
}

private void CheckNotAccidentalDefinition(MethodBase m)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ static Expression UnwrapConversions(Expression e)
return e;
}

public static MethodBase GetMethodFromExpression(Expression<Action> expression)
{
return GetMethodFromExpression((Expression)expression);
}

static MethodBase GetMethodFromExpression(Expression expression)
{
var originalExpression = expression;
Expand Down

0 comments on commit 015a691

Please sign in to comment.