diff options
author | SignpostMarv | 2012-08-31 12:59:07 +0100 |
---|---|---|
committer | Melanie | 2012-08-31 14:32:32 +0100 |
commit | 7a9eee8538f474a617a379a66854fe5fa6cb68cd (patch) | |
tree | c35828b8d53fbeb25d97766c57de91d92e258f08 /OpenSim | |
parent | changing to use Type argument instead of object (diff) | |
download | opensim-SC_OLD-7a9eee8538f474a617a379a66854fe5fa6cb68cd.zip opensim-SC_OLD-7a9eee8538f474a617a379a66854fe5fa6cb68cd.tar.gz opensim-SC_OLD-7a9eee8538f474a617a379a66854fe5fa6cb68cd.tar.bz2 opensim-SC_OLD-7a9eee8538f474a617a379a66854fe5fa6cb68cd.tar.xz |
no need to assign result to GetMethodInfoFromType
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs index 21aab84..bbf0dac 100644 --- a/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/ScriptModuleComms/ScriptModuleCommsModule.cs | |||
@@ -132,10 +132,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.ScriptModuleComms | |||
132 | 132 | ||
133 | private static MethodInfo GetMethodInfoFromType(Type target, string meth) | 133 | private static MethodInfo GetMethodInfoFromType(Type target, string meth) |
134 | { | 134 | { |
135 | MethodInfo mi = target.GetMethod(meth, | 135 | return target.GetMethod(meth, |
136 | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); | 136 | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance); |
137 | |||
138 | return mi; | ||
139 | } | 137 | } |
140 | 138 | ||
141 | public void RegisterScriptInvocation(object target, string meth) | 139 | public void RegisterScriptInvocation(object target, string meth) |