diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index abb04cd..2ef8258 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -880,36 +880,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
880 | return ret; | 880 | return ret; |
881 | } | 881 | } |
882 | 882 | ||
883 | public string[] GetScriptAssemblies() | ||
884 | { | ||
885 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); | ||
886 | |||
887 | List<string> ret = new List<string>(); | ||
888 | if (engines == null) // No engine at all | ||
889 | return new string[0]; | ||
890 | |||
891 | foreach (TaskInventoryItem item in m_items.Values) | ||
892 | { | ||
893 | if (item.InvType == (int)InventoryType.LSL) | ||
894 | { | ||
895 | foreach (IScriptModule e in engines) | ||
896 | { | ||
897 | if (e != null) | ||
898 | { | ||
899 | string n = e.GetAssemblyName(item.ItemID); | ||
900 | if (n != String.Empty) | ||
901 | { | ||
902 | if (!ret.Contains(n)) | ||
903 | ret.Add(n); | ||
904 | break; | ||
905 | } | ||
906 | } | ||
907 | } | ||
908 | } | ||
909 | } | ||
910 | return ret.ToArray(); | ||
911 | } | ||
912 | |||
913 | public Dictionary<UUID, string> GetScriptStates() | 883 | public Dictionary<UUID, string> GetScriptStates() |
914 | { | 884 | { |
915 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); | 885 | IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>(); |