From 13ae57b77775a0e3bc0f4d5958533819e9b03192 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Mon, 11 May 2020 13:14:34 +0100 Subject: [PATCH] removes the cleanup_ok value (it was not used) --- Core/Commands/Parcel/ParcelCleanAndSell.cs | 26 ++++++++-------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/Core/Commands/Parcel/ParcelCleanAndSell.cs b/Core/Commands/Parcel/ParcelCleanAndSell.cs index 507d1e6..7c8e781 100644 --- a/Core/Commands/Parcel/ParcelCleanAndSell.cs +++ b/Core/Commands/Parcel/ParcelCleanAndSell.cs @@ -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,22 +26,15 @@ 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; - targetparcel.AuthBuyerID = UUID.Zero; - targetparcel.OwnerID = UUID.Zero; - parcel_static.ParcelSetFlag(ParcelFlags.ForSale, targetparcel, true); - parcel_static.ParcelSetFlag(ParcelFlags.ForSaleObjects, targetparcel, false); - targetparcel.Update(bot.GetClient.Network.CurrentSim, false); - base.Callback(args, e, true); - } - else - { - base.Callback(args, e, false); - } + int.TryParse(args[0], out int price); + bot.GetClient.Parcels.ReleaseParcel(bot.GetClient.Network.CurrentSim, targetparcel.LocalID); + targetparcel.SalePrice = price; + targetparcel.AuthBuyerID = UUID.Zero; + targetparcel.OwnerID = UUID.Zero; + parcel_static.ParcelSetFlag(ParcelFlags.ForSale, targetparcel, true); + parcel_static.ParcelSetFlag(ParcelFlags.ForSaleObjects, targetparcel, false); + targetparcel.Update(bot.GetClient.Network.CurrentSim, false); + base.Callback(args, e, true); } else {