removes the cleanup_ok value (it was not used)

This commit is contained in:
Madpeter 2020-05-11 13:14:34 +01:00
parent 9349da0d25
commit 13ae57b777

View file

@ -14,7 +14,6 @@ namespace BSB.Commands.CMD_Parcel
public override void Callback(string[] args, EventArgs e)
{
bool cleanup_ok = true;
if (base.CallFunction(args) == true)
{
ParcelObjectOwnersReplyEventArgs ObjectOwners = (ParcelObjectOwnersReplyEventArgs)e;
@ -27,8 +26,6 @@ namespace BSB.Commands.CMD_Parcel
{
bot.GetClient.Parcels.ReturnObjects(bot.GetClient.Network.CurrentSim, targetparcel.LocalID, ObjectReturnType.List, owner_uuids);
}
if (cleanup_ok == true)
{
int.TryParse(args[0], out int price);
bot.GetClient.Parcels.ReleaseParcel(bot.GetClient.Network.CurrentSim, targetparcel.LocalID);
targetparcel.SalePrice = price;
@ -44,11 +41,6 @@ namespace BSB.Commands.CMD_Parcel
base.Callback(args, e, false);
}
}
else
{
base.Callback(args, e, false);
}
}
public override bool CallFunction(string[] args)
{