From eadfbf3ba294a36280e52e174aeaea2ae7fca6f0 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 7 Jan 2008 03:09:00 +0000
Subject: Very minor refactoring. Remove unused prim inventory bool returns
for now
---
OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 1 -
OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 8 ++------
2 files changed, 2 insertions(+), 7 deletions(-)
(limited to 'OpenSim/Region/Environment')
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index bfde643..2e8f5f7 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -562,7 +562,6 @@ namespace OpenSim.Region.Environment.Scenes
SceneObjectGroup group = GetGroupByPrim(localID);
if (group != null)
{
- // TODO: do we care about the value of this bool?
group.AddInventoryItem(remoteClient, localID, item, copyID);
group.StartScript(localID, copyID);
group.GetProperites(remoteClient);
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 98cd3af..c282780 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -100,8 +100,8 @@ namespace OpenSim.Region.Environment.Scenes
/// Start a script which is in this prim's inventory.
///
///
- /// true if script asset was found, false if it wasn't
- public bool StartScript(TaskInventoryItem item)
+ ///
+ public void StartScript(TaskInventoryItem item)
{
// MainLog.Instance.Verbose(
// "PRIMINVENTORY",
@@ -114,8 +114,6 @@ namespace OpenSim.Region.Environment.Scenes
{
string script = Helpers.FieldToUTF8String(rezAsset.Data);
m_parentGroup.Scene.EventManager.TriggerRezScript(LocalID, item.item_id, script);
-
- return true;
}
else
{
@@ -124,8 +122,6 @@ namespace OpenSim.Region.Environment.Scenes
"Couldn't start script {0}, {1} since asset ID {2} could not be found",
item.name, item.item_id, item.asset_id);
}
-
- return false;
}
///
--
cgit v1.1