LIBOMV-501 Pass 1: Cleanup of compile time warnings

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2713 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-05-08 07:32:49 +00:00
parent 545e8c97bd
commit 9bed5f15f9
16 changed files with 109 additions and 223 deletions

View File

@@ -118,7 +118,6 @@ namespace OpenMetaverse.TestClient
public override string Execute(string[] args, UUID fromAgentID)
{
StringBuilder sbResult = new StringBuilder();
if (args.Length == 1 && args[0] == "status")
{
@@ -250,7 +249,6 @@ namespace OpenMetaverse.TestClient
/// <param name="sPathSoFar">path so far, in the form @"c:\here" -- this needs to be "clean" for the current filesystem</param>
private void BackupFolder(InventoryNode folder, string sPathSoFar)
{
StringBuilder sbRequests = new StringBuilder();
// FIXME:
//Client.Inventory.RequestFolderContents(folder.Data.UUID, Client.Self.AgentID, true, true, false,

View File

@@ -7,7 +7,6 @@ namespace OpenMetaverse.TestClient.Commands.Inventory.Shell
{
public class ChangeDirectoryCommand : Command
{
private InventoryManager Manager;
private OpenMetaverse.Inventory Inventory;
public ChangeDirectoryCommand(TestClient client)
@@ -18,7 +17,6 @@ namespace OpenMetaverse.TestClient.Commands.Inventory.Shell
}
public override string Execute(string[] args, UUID fromAgentID)
{
Manager = Client.Inventory;
Inventory = Client.Inventory.Store;
if (args.Length > 1)

View File

@@ -51,12 +51,6 @@ namespace OpenMetaverse.TestClient
{
return String.Format("Unable to find Parcel {0} in Parcels Dictionary, Did you run parcelinfo to populate the dictionary first?", args[0]);
}
}
void Parcels_OnPrimOwnersListReply(Simulator simulator, List<ParcelManager.ParcelPrimOwners> primOwners)
{
throw new Exception("The method or operation is not implemented.");
}
}
}
}

View File

@@ -75,32 +75,6 @@ namespace OpenMetaverse.TestClient
return false;
}
bool Follow(UUID id)
{
lock (Client.Network.Simulators)
{
for (int i = 0; i < Client.Network.Simulators.Count; i++)
{
Avatar target = Client.Network.Simulators[i].ObjectsAvatars.Find(
delegate(Avatar avatar)
{
return avatar.ID == id;
}
);
if (target != null)
{
targetLocalID = target.LocalID;
Active = true;
return true;
}
}
}
Active = false;
return false;
}
public override void Think()
{
if (Active)

View File

@@ -7,11 +7,10 @@ namespace OpenMetaverse.TestClient
public class ChangePermsCommand : Command
{
AutoResetEvent GotPermissionsEvent = new AutoResetEvent(false);
UUID SelectedObject = UUID.Zero;
Dictionary<UUID, Primitive> Objects = new Dictionary<UUID, Primitive>();
PermissionMask Perms = PermissionMask.None;
bool PermsSent = false;
int PermCount = 0;
private bool PermsSent;
private int PermCount;
public ChangePermsCommand(TestClient testClient)
{

View File

@@ -24,10 +24,6 @@ namespace OpenMetaverse.TestClient
// Shell-like inventory commands need to be aware of the 'current' inventory folder.
public InventoryFolder CurrentDirectory = null;
private Quaternion bodyRotation = Quaternion.Identity;
private Vector3 forward = new Vector3(0, 0.9999f, 0);
private Vector3 left = new Vector3(0.9999f, 0, 0);
private Vector3 up = new Vector3(0, 0, 0.9999f);
private System.Timers.Timer updateTimer;
/// <summary>
@@ -107,25 +103,6 @@ namespace OpenMetaverse.TestClient
}
}
//breaks up large responses to deal with the max IM size
private void SendResponseIM(GridClient client, UUID fromAgentID, string data)
{
for (int i = 0; i < data.Length; i += 1024)
{
int y;
if ((i + 1023) > data.Length)
{
y = data.Length - i;
}
else
{
y = 1023;
}
string message = data.Substring(i, y);
client.Self.InstantMessage(fromAgentID, message);
}
}
private void updateTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (Command c in Commands.Values)