no need to assign result to GetMethodInfoFromType

integration
SignpostMarv 2012-08-31 12:59:07 +01:00 committed by Melanie
parent 05648c2c4a
commit 7a9eee8538
1 changed files with 1 additions and 3 deletions

View File

@ -132,10 +132,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.ScriptModuleComms
private static MethodInfo GetMethodInfoFromType(Type target, string meth) private static MethodInfo GetMethodInfoFromType(Type target, string meth)
{ {
MethodInfo mi = target.GetMethod(meth, return target.GetMethod(meth,
BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
return mi;
} }
public void RegisterScriptInvocation(object target, string meth) public void RegisterScriptInvocation(object target, string meth)