From 015a691b285728a955d1dc4fbe336adf9ee348a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Sat, 7 Oct 2023 13:46:56 +0200 Subject: [PATCH] Fixed JS translations APIafter rebase --- .../Javascript/JavascriptTranslatableMethodCollection.cs | 6 ------ .../Framework/Compilation/Javascript/MemberInfoHelper.cs | 5 ----- 2 files changed, 11 deletions(-) diff --git a/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs b/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs index 5c9cfb854f..d2bb464cb6 100644 --- a/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs +++ b/src/Framework/Framework/Compilation/Javascript/JavascriptTranslatableMethodCollection.cs @@ -80,12 +80,6 @@ public void AddMethodTranslator(Expression> methodCall, IJavascriptMe CheckNotAccidentalDefinition(method); AddMethodTranslator(method, translator); } - public void AddMethodTranslator(Expression methodCall, IJavascriptMethodTranslator translator) - { - var method = (MethodInfo)MethodFindingHelper.GetMethodFromExpression(methodCall); - CheckNotAccidentalDefinition(method); - AddMethodTranslator(method, translator); - } private void CheckNotAccidentalDefinition(MethodBase m) { diff --git a/src/Framework/Framework/Compilation/Javascript/MemberInfoHelper.cs b/src/Framework/Framework/Compilation/Javascript/MemberInfoHelper.cs index 723d4961b0..248241f59c 100644 --- a/src/Framework/Framework/Compilation/Javascript/MemberInfoHelper.cs +++ b/src/Framework/Framework/Compilation/Javascript/MemberInfoHelper.cs @@ -32,11 +32,6 @@ static Expression UnwrapConversions(Expression e) return e; } - public static MethodBase GetMethodFromExpression(Expression expression) - { - return GetMethodFromExpression((Expression)expression); - } - static MethodBase GetMethodFromExpression(Expression expression) { var originalExpression = expression;