From fa37a4dab15815c0cb1e232c848ea1cf488ac529 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 7 Oct 2018 16:18:55 +0200 Subject: [PATCH] Removed copypasted dead code --- Site/Pages/v5/Swarm/ListFindPeople.aspx.cs | 73 ---------------------- 1 file changed, 73 deletions(-) diff --git a/Site/Pages/v5/Swarm/ListFindPeople.aspx.cs b/Site/Pages/v5/Swarm/ListFindPeople.aspx.cs index 56a08469..4f5f5aac 100644 --- a/Site/Pages/v5/Swarm/ListFindPeople.aspx.cs +++ b/Site/Pages/v5/Swarm/ListFindPeople.aspx.cs @@ -43,79 +43,6 @@ namespace Swarmops.Frontend.Pages.Swarm this.LabelGridHeaderNotes.Text = Global.Global_Notes; } - [WebMethod] - public static ConfirmPayoutResult ConfirmPayout (string protoIdentity) - { - protoIdentity = HttpUtility.UrlDecode (protoIdentity); - - AuthenticationData authData = GetAuthenticationDataAndCulture(); - - if ( - !authData.Authority.HasAccess (new Access (authData.CurrentOrganization, AccessAspect.Financials, - AccessType.Write))) - { - throw new SecurityException("Insufficient privileges for operation"); - } - - ConfirmPayoutResult result = new ConfirmPayoutResult(); - - Payout payout = Payout.CreateFromProtoIdentity (authData.CurrentUser, protoIdentity); - PWEvents.CreateEvent (EventSource.PirateWeb, EventType.PayoutCreated, - authData.CurrentUser.Identity, 1, 1, 0, payout.Identity, - protoIdentity); - - // Create result and return it - - result.AssignedId = payout.Identity; - result.DisplayMessage = String.Format (Resources.Pages.Financial.PayOutMoney_PayoutCreated, payout.Identity, - payout.Recipient); - - result.DisplayMessage = CommonV5.JavascriptEscape(result.DisplayMessage); - - return result; - } - - [WebMethod] - public static UndoPayoutResult UndoPayout (int databaseId) - { - AuthenticationData authData = GetAuthenticationDataAndCulture(); - UndoPayoutResult result = new UndoPayoutResult(); - - Payout payout = Payout.FromIdentity (databaseId); - - if (!payout.Open) - { - // this payout has already been settled, or picked up for settling - - result.Success = false; - result.DisplayMessage = String.Format (Resources.Pages.Financial.PayOutMoney_PayoutCannotUndo, - databaseId); - - return result; - } - - payout.UndoPayout(); - - result.DisplayMessage = - HttpUtility.UrlEncode (String.Format (Resources.Pages.Financial.PayOutMoney_PayoutUndone, databaseId)) - .Replace ("+", "%20"); - result.Success = true; - return result; - } - - public struct ConfirmPayoutResult - { - public int AssignedId; - public string DisplayMessage; - }; - - public struct UndoPayoutResult - { - public string DisplayMessage; - public bool Success; - } - - // ReSharper disable once InconsistentNaming public string Localized_NoticeTooManyHits {